PHP code example of myphps / my
1. Go to this page and download the library: Download myphps/my 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/ */
myphps / my example snippets
创建应用
php my --run=应用目录名 --init
初始表Model
php cli.php Model 1 "common\model" "\common\CommonModel"
常驻内存运行
php app.php
或
php app.php -n进程数 -p端口 [-s Swoole方式运行]