PHP code example of mitoop / ace
1. Go to this page and download the library: Download mitoop/ace 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/ */
mitoop / ace example snippets
bash
ace
# 或者
ace php
bash
ace # 等同于 ace php
ace php # 使用项目对应 PHP 版本运行
ace composer # 使用匹配的 PHP 版本执行 composer
ace pecl # 使用匹配的 PHP 版本执行 pecl
ace artisan # 执行 Laravel 命令
ace clear # 清除缓存
ace hello # 打印 Hello Ace!
# 示例用法
ace -v # 查看当前使用的 PHP 版本
ace php -v # 同上
ace artisan migrate # 执行 Laravel 数据迁移
ace composer install # 安装依赖
ace pecl install redis # 安装扩展
json
{
"php": "^7.4.0"
}
Composer 2.3.0 dropped support for PHP <7.2.5