mblsolutions / simfoniretail-php-laravel
Official Simfoni Retail interface for Laravel PHP applications.
Installs: 5 455
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 1
Type:package
Requires
- php: ^8.0|^8.1
- ext-json: *
- illuminate/pagination: ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^v10
- illuminate/routing: ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^v10
- illuminate/session: ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^v10
- illuminate/support: ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^v10
- mblsolutions/simfoni-retail-php: *
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-22 16:42:49 UTC
README
The Simfoni Retail Interface for Laravel gives you an API interface into the Simfoni Retail Platform for your Laravel applications.
Access Tokens
Integration Applications
Simfoni Retail provides an interface for the integrator to manage their own set of security credentials. This interface is available from the ‘Integrations’ menu item of Simfoni Retail.
- Live Integration Applications / Staging Integration Applications
- Live Documentation / Staging Documentation
Installation
The recommended way to install Simfoni Retail Laravel is through Composer.
composer require mblsolutions/simfoniretail-php-laravel
Laravel without auto-discovery
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
\MBLSolutions\SimfoniRetailLaravel\SimfoniRetailServiceProvider::class,
Usage
Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="MBLSolutions\SimfoniRetailLaravel\SimfoniRetailServiceProvider"
A new config file will be available in config/simfoniretail.php
, please familiarise yourself with the available
environment variables that should be setup in .env
.
SIMFONI_RETAIL_ENDPOINT=https://simfoni.io SIMFONI_API_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjBmOGMwNDAxZDAy
Authentication
The Simfoni Retail Service provider will automatically inject your authentication token and endpoint into the SimfoniRetail base class. To override these settings you can set up the configuration manually.
SimfoniRetail::setBaseUri('https://simfoni.io'); SimfoniRetail::setToken('eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjBmOGMwNDAxZDAy');
Please Note: We do recommend using the Service Provider supplied in this package.
Further documentation
See the Simfoni Retail Interface for PHP package for further documentation on issuing transactions.
License
Simfoni Retail Interface for Laravel is free software distributed under the terms of the MIT license.
A contract/subscription to Simfoni Retail is required to make use of this package, for more information contact Redu Group