{
"name": "death_satan/test", //包名
"description": "testing", //包的介绍
"keywords": [
"test",
"demo"
], //包的关键字,在composer search时候或者在packagist.org搜索时用到
"type": "library", //包的类型,可选library,project,metapackage,composer-install
"homepage": "https://www.cnblogs.com/death-satan", //主页
"license": "MIT", //关于这个包的许可证信息
"authors": [ //二维数组,关于作者的一些信息
{
"name": "death-Satan",
"email": "death-satan@qq.com"
}
],
"require": {
"death_satan/demo": "^0.0.1", //包含某个包,:后面跟着是版本号
},
"require-dev": { //在开发环境下所需要包含进来的包
"death_satan/phpunit": "*",
},
"autoload": {
"files": [
"src/helpers.php"
], //自动加载的方法,在这里申明的文件会在程序启动前包含进来
"psr-4": {
"Death\\Satan\\Frame\\": "src/", //申明命名空间对应的文件路径
}
},
"autoload-dev": { //在开发环境下所申明的信息,比如phpunit的测试命名控件?
"files": [
"src/helpers.php"
], //自动加载的方法,在这里申明的文件会在程序启动前包含进来
"psr-4": {
"Death\\Satan\\Test\\Frame\\": "src/", //申明命名空间对应的文件路径
}
}
"suggest": {
"death_satan/demo": "应该安装这个包", //建议安装的包
},
"minimum-stability": "dev", //默认stable(稳定),可选dev,alpha,beta,RC
"repositories": [ //自定义的包资源库
{
"type": "path", //可选 path(本地路径),composer(私源),zip(zip文件),svn
"url": "上方所定义的对应地址"
}
],
"bin": [
"bin/shell"
], //自定义二进制文件
}
composer.json文件内容
相关推荐
-
生成图片
from PIL import Image, ImageColor, ImageDraw, ImageFont, ImageFilterdef create_image_with_text(size, color, text, font_path, font_size, text_color, shadow_color, output_path): """ Create a new image of specified size and color with centered text that has a border and shadow. :param size: A tuple con
-
获取指定目录下的所有图片信息
1 获取指定目录下的所有图片信息// 获取指定目录下的所有图片信息 public function getImagesInfo($directory) { $images = []; // 创建递归目录迭代器 $iterator = new \RecursiveIteratorIterator( new \RecursiveDirectoryIterator($directory, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::LEAVES_ONLY ); // 遍历目录中的每个文件 foreach (
-
Thinkphp各版本的PHP要求
ThinkPHP 8.0:运行环境要求PHP8.0+,兼容PHP8.3ThinkPHP 6.1:运行环境要求PHP7.2+,兼容PHP8.1ThinkPHP 6.0:运行环境要求PHP7.2+,兼容PHP8.1ThinkPHP 5.1:运行环境要求PHP5.6+,兼容PHP8.0ThinkPHP 5.0:运行环境要求PHP5.4+,兼容PHP7.3