{"id":18431291,"url":"https://github.com/zhan3333/php-composer-explain","last_synced_at":"2025-10-20T08:56:30.673Z","repository":{"id":102225412,"uuid":"101984636","full_name":"zhan3333/php-composer-explain","owner":"zhan3333","description":"composer使用说明","archived":false,"fork":false,"pushed_at":"2017-08-31T14:57:19.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T22:57:36.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhan3333.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-31T09:34:57.000Z","updated_at":"2017-08-31T14:57:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"75f063cd-2753-449f-b2fa-dd92e15d53ce","html_url":"https://github.com/zhan3333/php-composer-explain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-composer-explain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-composer-explain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-composer-explain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhan3333%2Fphp-composer-explain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhan3333","download_url":"https://codeload.github.com/zhan3333/php-composer-explain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794571,"owners_count":21162614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T05:24:14.071Z","updated_at":"2025-10-20T08:56:30.569Z","avatar_url":"https://github.com/zhan3333.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# composer\n\n## 概念\n\n- 是一个依赖管理工具\n- 库： 别人写好的工具库，提供很多的功能\n- 好处： 不需要重复造轮子 (office的操作)\n    - office\n        - excel： 导出数据库中的用户表，导出为excel文件\n        \n## 作用\n\n- 防止重复造轮子\n- 控制依赖库的版本\n\n\n## 怎么使用\n\n### 安装\n\n- 通过yum\n- 通过下载\n\n### 使用\n\n- 创建 composer.json\n- 安装 composer install\n- 导入 `require autoload.php`\n\n### 目录结构\n- vendor\n    - composer          提供自动载入功能\n    - monolog           依赖库文件\n    - psr               依赖库的一部分\n    - autoload.php      自动载入功能入口\n\n\n## 以往过程中怎么使用\n\n- 怎么写日志\n    - 定义一个函数，向一个文件中写入字符串 file_put_contents()\n        - 缺点：可使用范围小，功能少","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fphp-composer-explain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhan3333%2Fphp-composer-explain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhan3333%2Fphp-composer-explain/lists"}