Download the PHP package seravo/php-seravo-api without Composer
On this page you can find all versions of the php package seravo/php-seravo-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-seravo-api
PHP Seravo API
A simple, object-oriented wrapper for the Seravo API, written in PHP.
Getting Started
API credentials are required to use the service. For more information and to request API credentials, please visit our website or contact [email protected] directly.
Requirements
- PHP >= 8.2
- PHP XML extension (php-xml)
- ext-curl PHP cURL extension
- ext-json PHP JSON extension
- ext-mbstring PHP Multibyte String extension
Installation
Clone the project:
HTTPS
SSH
Install composer dependencies:
The package uses PSR-4 autoloader for class autoloading. Activate autoloading by requiring the Composer autoloader (Note the path to the vendor directory is relative to your project):
Environment Variables
The following environment variables are required to be set before using the library:
SERAVO_API_CLIENT_IDSERAVO_API_SECRET
Optionally, you may pass these environment variables as well:
SERAVO_ENVIRONMENT- Defines the API environment (
testing,staging,production) to be used. Defaults toproductionif omitted from.envand/or constructor.
- Defines the API environment (
These values must be set in the /.env file. See .env.example.
Basic Usage
See the examples directory for more detailed information about how to use the library.
Initializing the Client
To initialize the SeravoAPI client, instantiate the class with valid credentials and authenticate:
Public API
Get Single Plan
Return a single Plan by ID:
Order API
Get Single Order
Return a single Order by ID:
Create New Order
Create a new Order:
Documentation
See our documentation for Order Module API & Public Module API.
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of php-seravo-api with dependencies
ext-json Version *
ext-curl Version *
ext-mbstring Version *
php-http/discovery Version ^1.20
php-http/httplug Version ^2.4
php-http/client-common Version ^2.7
psr/http-message Version ^2.0
symfony/serializer Version ^7.2
symfony/property-access Version ^7.2
json-mapper/json-mapper Version ^2.22
firebase/php-jwt Version ^7.0
stevenmaguire/oauth2-keycloak Version ^6.1