{"id":19309636,"url":"https://github.com/roxma/php_learn","last_synced_at":"2026-05-14T18:32:56.185Z","repository":{"id":82181187,"uuid":"63564998","full_name":"roxma/php_learn","owner":"roxma","description":null,"archived":false,"fork":false,"pushed_at":"2016-09-01T04:46:34.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T01:43:56.637Z","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/roxma.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":"2016-07-18T02:44:52.000Z","updated_at":"2016-07-18T02:45:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3a98469-6c54-49af-9734-94512ccd4f19","html_url":"https://github.com/roxma/php_learn","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/roxma%2Fphp_learn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fphp_learn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fphp_learn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fphp_learn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roxma","download_url":"https://codeload.github.com/roxma/php_learn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240410396,"owners_count":19796885,"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-10T00:19:59.501Z","updated_at":"2026-05-14T18:32:51.159Z","avatar_url":"https://github.com/roxma.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP 学习笔记\n\n## CentOS 安装 PHP 7\n\n使用 remirepo。remi 是 PECL 的成员，值得信赖。\n\n如果是 CentOS 6.x，把 `http://rpms.remirepo.net/enterprise/remi-release-7.rpm`  里面的 7 改成 6：\n\n```bash\nyum install scl-utils\nyum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm\nyum install -y php70\nyum install -y php70-php-cli\nyum install -y php70-php-mysqlnd\nyum install -y php70-php-curl\nyum install -y php70-php-pdo\nyum install -y php70-php-simplexml\nyum install -y php70-php-fpm php70-php-process\nyum install -y php70-php-devel php70-php-gd php70-php-json php70-php-mcrypt php70-php-mbstring php70-php-opcache php70-php-pear \nyum install -y php70-php-pecl-apcu php70-php-pecl-geoip php70-php-pecl-imagick php70-php-pecl-json-post php70-php-pecl-memcache \nyum install -y php70-php-pecl-xmldiff php70-php-pspell php70-php-soap php70-php-tidy php70-php-xml php70-php-xmlrpc\n```\n\n也可以用 epel 的仓库：\n\nCentOS/RHEL 7.x：\n\n```bash\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm\nrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm\n```\n\nCentOS/REHL 6.x:\n\n```bash\nrpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm\nrpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm\n```\n\n然后\n\n```bash\nyum install php70w php70w-opcache\n# ...... blah blah bhal ...\n```\n\n\n## 当前 pear 安装包\n\n\n```txt\n[roxma@VM_67_229_centos reveal.js]$ pear list -a\nInstalled packages, channel __uri:\n==================================\n(no packages installed)\n\nInstalled packages, channel doc.php.net:\n========================================\nPackage Version    State\npman    2015.06.19 stable\n\nInstalled packages, channel pear.php.net:\n=========================================\nPackage          Version State\nArchive_Tar      1.4.2   stable\nConsole_Getopt   1.4.1   stable\nPEAR             1.10.1  stable\nPEAR_Manpages    1.10.0  stable\nStructures_Graph 1.1.1   stable\nXML_Util         1.3.0   stable\n\nInstalled packages, channel pecl.php.net:\n=========================================\nPackage  Version  State\nmemcache 3.0.9dev devel\nzip      1.13.3   stable\n```\n\n其中\n\n- `pman` 命令用于查看 php 函数文档。\n\n安装命令\n\n```bash\npear install doc.php.net/pman\npear install Archive_Tar Console_Getopt PEAR PEAR_Manpages Structures_Graph XML_Util\n# pecl install zip memcache\nyum install php70-php-pecl-zip  php70-php-pecl-memcache\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxma%2Fphp_learn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froxma%2Fphp_learn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxma%2Fphp_learn/lists"}