cerpus / coreclient
Client for communication with Core
Installs: 5 499
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- cerpus/cerpushelper: ^2.0
- illuminate/http: *
Requires (Dev)
- fakerphp/faker: ^1.16
- illuminate/validation: ^6.0
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.5
README
This is a client that handles requests to Core.
Installation in Laravel
- Install the code with composer:
composer require cerpus/coreclient
- Add the class CoreClientServiceProvider in the list of providers for your site
- Normally located in config/app.php in Laravel
- Add the code
$app->register(\Cerpus\CoreClient\CoreClientServiceProvider::class);
in bootstrap/app.php in Lumen
- Setup url to Core and Auth, depending on level of security. The package is delivered with default settings that's read from the env file. If default key is not possible, fallback is listed in parethesis
-
Core
- CERPUS_CORE_SERVER (CORECLIENT_CORE_SERVER)
- CERPUS_CORE_KEY (CORECLIENT_CORE_KEY)
- CERPUS_CORE_SECRET (CORECLIENT_CORE_SECRET)
- CERPUS_CORE_TOKEN (CORECLIENT_CORE_TOKEN)
- CERPUS_CORE_TOKEN_SECRET (CORECLIENT_CORE_TOKEN_SECRET)
-
Auth
- CERPUS_AUTH_SERVER (CORECLIENT_AUTH_SERVER)
- CERPUS_AUTH_USER (CORECLIENT_AUTH_USER)
- CERPUS_AUTH_SECRET (CORECLIENT_AUTH_SECRET)
-
Adapter
- CORECLIENT_ADAPTER, default set to CoreAdapter
- CORECLIENT_SERVICE, default set to Client(no authentication)
-
- To use the client create a new object of type CoreContract or call static facade CoreClient
License
This package is released under the GNU General Public License 3.0. See the
LICENSE
file for more information.