PHP code example of laswitchtech / php-service
1. Go to this page and download the library: Download laswitchtech/php-service library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
laswitchtech / php-service example snippets
#!/usr/bin/env php
session_start();
//Import phpCLI class into the global namespace
//These must be at the top of your script, not inside a function
use LaswitchTech\phpCLI\phpCLI;
//Load Composer's autoloader