26 Star 52 Fork 12

kephp / kephp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

kephp

基本安装

composer require kephp/kephp
composer require kephp/kephp ~version
composer require kephp/kephp ^version
composer update kephp/kephp

composer 源切换

显示当前全局的源:

composer config -g repo.packagist

去掉当前设置的全局源:

composer config -g --unset repos.packagist

国内源:

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

国际源:

composer config -g repo.packagist composer https://repo.packagist.org

提示:

  1. 尽量不要在项目的 composer.json 上配置源,会让项目难以适配更多的环境。
  2. https://packagist.phpcomposer.com 这个源,更新 composer 有点慢,看情况使用。

Windows

  1. 下载最新的 composer.phar,到你希望安装的目录,比如 d:\composer
  2. 用命令行进入这个目录,执行 echo @php "%~dp0composer.phar" %* > composer.bat,会在这个目录下产生一个 composer.bat 文件。
  3. 将这个目录添加进系统变量的Path中。
  4. 如果开发者在国内(国外请忽略),设置全局 composer 环境 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

Linux

wget https://getcomposer.org/composer.phar
php7 composer.phar install
The MIT License (MIT) Copyright (c) 2018 kephp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Keep php easy! A portable and useful php development framework. 展开 收起
PHP 等 2 种语言
MIT
取消

发行版 (14)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/kephp/kephp.git
git@gitee.com:kephp/kephp.git
kephp
kephp
kephp
master

搜索帮助