Do you want to build a PHP application under a couple of hours but clueless where to begin? We have a basic tutorial where we’ll walk you through building a PHP application, including how to upload and launch your application.
So what are you waiting for? Let’s get started!
Build your PHP Application using our StarterAPI: The following steps will give you a basic idea on how to integrate the API for building your application.
- Download our Starter PHP Application
- Configure the application
- Deploy on server
- Launch your application
To interact with our API Server, there is a PHP composer library called “wavelabs_php_api“. The source code and documentation of this library are available here. This library is published in the Composer.org under MIT license. You can get the latest one using the following command:
PHP composer install wavelabs/php-client-api
1. Download Our Starter PHP Application
Download the application from PHP Application.
2. Configure the Application
Register yourself on NBOS website. Create your tenant. Grab the client id, secret and update in /application/config/constants.php
defined('API_HOST_URL') OR define('API_HOST_URL', "http://api.qa1.nbos.in/");
defined('API_CLIENT_ID') OR define('API_CLIENT_ID', "api-client");
defined('API_CLIENT_SECRET') OR define('API_CLIENT_SECRET', "api-secret");
3. Upload App On Hosting Server
Deploy your code on the server.
If you are doing it locally, move this folder to the document root of apache.
4. Launch Your Application
Open your browser and try your domain.
http://<yourdomain_name>/

PHP APP
And there you go, it’s all done. You’ve successfully launched your first PHP application into the market.