Download the PHP package drewlabs/lv-oauth-clients without Composer

On this page you can find all versions of the php package drewlabs/lv-oauth-clients. 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 lv-oauth-clients

Laravel Oauth Clients

drewlabs/oauth-clients laravel framework bindings. The library provide laravel developers with eloquent compatible oauth client.

Usage

To use library components in your laravel application, please register library service provider in the list of application service providers:

Note: Doing the step above might not be required, because the library uses laravel service auto discovery to register the it service provider automatically. But in case of any issue, make sure the service is properly registered.

Configuration assets

Library components such as client secret hashing, should be configured for components to work properly. Therefore the library comes with basic configuration file that can be imported into your application configuration using laravel vendor:publish command:

php artisan vendor:publish --tag=oauth-clients-configs

Migrations

For easy integration with laravel eloquent, library provides a model for properly working with auth clients. To publish migration files for the eloquent model:

php artisan vendor:publish --tag=oauth-clients-migrations

Note You can use the --force flag if the migration already exists and should be overridden

Then you run:

php artisan migrate # to apply your migration changes

Creating clients using cli

After the above steps completed, you can go to your command while being in development environment to generate auth client instance:

To create a password client:

php artisan drewlabs:oauth-clients:create --password

To create a personnal access client:

php artisan drewlabs:oauth-clients:create --personal

Note Please use php artisan drewlabs:oauth-clients:create --help for more options

Note Documentation is still under development to include future changes. Thanks.


All versions of lv-oauth-clients with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
drewlabs/core-helpers Version ^0.3.0
drewlabs/oauth-clients Version ^0.2.0|^0.3.1
drewlabs/query-contracts Version ^0.3.0
illuminate/console Version ^9.0|^10.0|^11.0
illuminate/database Version ^9.0|^10.0|^11.0
psr/http-client Version ^1.0
psr/http-message Version ^2.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 drewlabs/lv-oauth-clients contains the following files

Loading the files please wait ....