Skip to content

centralnicgroup-opensource/rtldev-middleware-php-sdk

Repository files navigation

php-sdk

semantic-release Build Status Packagist PHP from Packagist License: MIT PRs welcome

This module is a connector library for the insanely fast CNIC Backend APIs (HEXONET, CentralNic Reseller formerly known as RRPproxy). Do not hesitate to contact us in case of questions.

Resources

Usage

composer require centralnic-reseller/php-sdk

Dev Container

  • Add an entry in your hosts file: 127.0.0.1 devsdk.hexonet.net

PHP SDK Data can be accessed via apache server at this url: http://devsdk.hexonet.net

Running the Demo Application

To run the demo application, follow these steps:

  1. Set Your Credentials: You need to ensure your credentials are available. You can do this in two ways:

    • Directly replace the credentials within the application file.
    • Alternatively, set the environment variables required for the CNR test app:
      export RTLDEV_MW_CI_USER_CNR=<your-username>
      export RTLDEV_MW_CI_USERPASSWORD_CNR=<your-password>
  2. Execute the Demo: Once the credentials are configured, run the appropriate demo command:

    • For CNR:
      npm run test-demo-cnr
    • For Hexonet:
      npm run test-demo-hexonet
  3. Update Demo Contents: If you need to modify the demo contents, the relevant file is located at:

    • For CNR:
    tests/CNR/app.php
    
    • For Hexonet:
    tests/HEXONET/app.php
    

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.