RMSAPI PHP Client is a library that facilitates interaction with the RMS Super Controller module for managing various tasks such as server operations, updates handling, and more.
- PHP >= 7.0
- PhpZip library
- Carbon library
You can install the RMSAPI PHP Client library via Composer. Run the following command in your project directory:
composer require rmsapi/rms
use RMSAPI\RMS\RMSAPI;
// Initialize RMSAPI instance
$rmsApi = new RMSAPI($api_key, $app_id);
// Sample usage: Check for updates availability
$updateStatus = $rmsApi->check_updates();
var_dump($updateStatus);
- Run Server: Start a PHP server locally.
- Compile Updates: Assemble updates into a zip file while excluding files specified in the ignore list.
- Generate Controllers: Generate controller files if they don't exist already.
- Download Updates: Download updates if available.
- Install Updates: Install updates if available.
- Environment Variables: Retrieve environment variables from the
.env
file. - Invoice Generation: Initiate the process of generating invoices via API.
__construct($api_key, $app_id)
: Initializes API key, app ID, and API endpoint.
SPCMD($argv, $argc)
: Parses command-line arguments and executes corresponding actions.
updatesAssembler($zipFileName)
: Assembles updates into a zip file.generate_controllers($controllers)
: Generates controller files.download_updates()
: Downloads updates if available.install_updates()
: Installs updates if available.
env($var_name)
: Retrieves environment variables.invoice()
: Initiates invoice generation via API.
This library is licensed under the MIT License. See the LICENSE file for details.