PHP code example of onex / sword
1. Go to this page and download the library: Download onex/sword 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/ */
onex / sword example snippets
// 位于lumen_project_dir/bootstrap/app.php文件
//$app = new Laravel\Lumen\Application(
// realpath(__DIR__.'/../')
//);
//修改为以下内容
$app = new App\Application(
realpath(__DIR__.'/../')
);
shell
copy lumen_project_dir/vendor/onex/sword/misc/Application.php lumen_project_dir/app/