2017 © Pedro Peláez
 

library laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

image

avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  • Friday, April 20, 2018
  • by avanderbergh
  • Repository
  • 1 Watchers
  • 1 Stars
  • 548 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 30 Versions
  • 1 % Grown

The README.md

Laravel Schoology

A Laravel 5 package that provides an easy way to create Schoology applications using the Laravel framework. This package combines modified files from aacotroneo/laravel-saml2 and schoology/schoology_php_sdk into a new package., (*1)

Installation with Composer

Run the following command in your app's root directory composer require avanderbergh/laravel-schoology., (*2)

When the installation finishes, add add the following to config/app.php., (*3)

'providers' => [
    ...
    Avanderbergh\Schoology\Saml2ServiceProvider::class,
    Avanderbergh\Schoology\SchoologyServiceProvider::class,
]
'aliases' => [
    ...
    'Schoology' => Avanderbergh\Schoology\Facades\Schoology::class,
]

Once this has been added, run the command php artisan vendor:publish to copy the settings and migrations files to your Laravel config and database/migrations directories. Now run the command php artisan migrate to create the oauth_store and schoology_users tables. These tables are used to store oauth access tokens and user information retrieved from Schoology., (*4)

Once the tables have been created, you will need to edit the config/auth.php file. In the User Providers section, change the model key for the users provider to Avanderbergh\Schoology\SchoologyUser::class, The file should now look like this:, (*5)

...
    ...
    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => Avanderbergh\Schoology\SchoologyUser::class,
        ],
    ...
...

CSRF Token Verification Middleware

For this package to work, you will need to exclude the 'saml/' route from Laravel's CSRF verification middleware. Open app/Http/Middleware/VerifyCsrfToken.php, and enter 'saml/' into the $except array., (*6)

The file should now look like this:

class VerifyCsrfToken extends BaseVerifier
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        'saml/*'
    ];
}

Usage

Set your application's SAML ACS URL to [yourdomain]/saml/acs in Schoology., (*7)

Create the following keys in your .env file:, (*8)

CONSUMER_KEY='Your Schoology Oauth Consumer Key'
CONSUMER_SECRET='You Schoology Oauth Consumer Secret'

Create a route and enter that as your App URL in the Schoology App Center. The user will be routed to this URL once they have been authenticated., (*9)

Now, to make API calls to Schoology, simply use the registered Facade for php Schoology. Use the line php Schoology::authorize(); ```` to authorize. You can now make API calls using, for example,php` $users = Schoology::apiResult('users'); ```. That's it!, (*10)

The Versions

20/04 2018

dev-master

9999999-dev http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

20/04 2018

0.3.1

0.3.1.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

20/04 2018

0.3

0.3.0.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

09/10 2016

0.2.7

0.2.7.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

08/10 2016

0.2.6

0.2.6.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

13/09 2016

0.2.5

0.2.5.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

06/09 2016

0.2.4

0.2.4.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

01/09 2016

0.2.3

0.2.3.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

26/06 2016

0.2.2

0.2.2.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

26/06 2016

0.2.1

0.2.1.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

05/06 2016

0.2

0.2.0.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

22/05 2016

0.1.13

0.1.13.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

14/05 2016

0.1.12

0.1.12.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

12/05 2016

0.1.11

0.1.11.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

12/05 2016

0.1.10

0.1.10.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

19/03 2016

0.1.9.6

0.1.9.6 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

19/03 2016

0.1.9.4

0.1.9.4 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

19/03 2016

0.1.9.5

0.1.9.5 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

07/12 2015

0.1.9.3

0.1.9.3 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

13/09 2015

0.1.9.1

0.1.9.1 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

13/09 2015

0.1.9

0.1.9.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

13/09 2015

0.1.8

0.1.8.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

14/08 2015

0.1.7

0.1.7.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

14/08 2015

0.1.6

0.1.6.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

18/07 2015

0.1.5

0.1.5.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

18/07 2015

0.1.4

0.1.4.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

05/07 2015

0.1.3

0.1.3.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

05/07 2015

0.1.2

0.1.2.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

04/07 2015

0.1.1

0.1.1.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology

01/07 2015

0.1.0

0.1.0.0 http://github.com/avanderbergh/laravel-schoology

A Laravel Package to allow for the development of apps on top of the Schoology platform. Built by modifying and combining these packages: aacotroneo/laravel-saml2 and schoology/schoology_php_sdk.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar avanderbergh

saml schoology