Download the PHP package swisnl/laravel-lti-provider without Composer

On this page you can find all versions of the php package swisnl/laravel-lti-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-lti-provider

Laravel LTI Provider

Latest Version on Packagist Buy us a tree Build Status Total Downloads Made by SWIS

This packages provides a bridge between the Celtic LTI Package and Laravel models, by implementing a DataConnector for the Celtic LTI Package.

Install

Via Composer

Then run command to copy the required files (including the migrations) into your project.

If you have Laravel package auto discovery disabled, add the service provider to your config/app.php file:

Finally run the migrations.

Cron jobs

The package comes with a command to clean up expired LTI nonces. To run this command, add the following to your app/Console/Kernel.php file:

Usage

Define a model that you use as an LTI environment. This model should implement the Swis\Laravel\Lti\Contracts\LtiEnvironment. The packages scopes all other models to the current LTI environment.

Using this this environment, you can create a new ModelDataConnector instance. This instance can be used like the DataConnector from the Celtic LTI Package.

Customization

This package allows overriding most of the models. We use this to override some models to use UUIDs instead of numeric ids, and to add some extra functionality (examples of this extra functionality: adding logging to UserResult; and using the same Client model for both LTI and Laravel Passport).

To override a model (except the client), create a new class that extends the original model and register the new model in the config/lti-provider.php file. For example, to override the UserResult model, create a new class that extends the Swis\Laravel\Lti\Models\UserResult class and change the following to your config/lti-provider.php file:

Clients are a bit different, because you don't need to extend from an existing class. To override the client, create a new class that implements the Swis\Laravel\Lti\Contracts\Client interface and register the new model in the config/lti-provider.php file.

For inspiration on how to implement your own client, take a look at the Swis\Laravel\Lti\Models\SimpleClient class (a very basic implementation) or the \Workbench\App\OverrideModels\Client class (this is a more complex example used in the tests to check if it is possible to override the default implementation and if the package can handle clients with UUIDs instead of numeric ids).

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

SWIS :heart: Open Source

SWIS is a web agency from Leiden, the Netherlands. We love working with open source software.


All versions of laravel-lti-provider with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 | ^8.2 | ^8.3
laravel/framework Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.15
celtic/lti Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package swisnl/laravel-lti-provider contains the following files

Loading the files please wait ....