Composer安装
  • # 安装Composer
  • # 设置Composer 阿里云镜像
    composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
  • # 安装CrossPHP
    composer create-project ideaa/crossphp cp ~v1
  • # 启动API
    php -S localhost:8081 -t ./cp/public/api