-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from 645418484/thinkphp-recipes
Thinkphp recipes
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Thinkphp 使用 Adapterman | ||
|
||
[English](./thinkphp.md) | 中文 | ||
|
||
```shell | ||
# 安装 adapterman 到你的项目 | ||
composer require joanhey/adapterman | ||
# 启动 | ||
./vendor/bin/adapterman start | ||
``` | ||
运行逻辑解释: | ||
1.`./vendor/bin/adapterman start` 命令其实是执行了 | ||
|
||
/usr/bin/env php -c vendor/joanhey/adapterman/cli-php.ini vendor/joanhey/adapterman/src/start.php "$@" | ||
|
||
2.php -c [vendor/joanhey/adapterman/cli-php.ini](https://github.com/joanhey/AdapterMan/blob/master/cli-php.ini) 将一些php内置函数禁用之后,adapterman框架实现这些禁用的函数,实现在fpm下的功能在 php cli 下正常运行 | ||
|
||
3.[vendor/joanhey/adapterman/src/start.php](https://github.com/joanhey/AdapterMan/blob/master/src/start.php) 文件将自动启动服务器,并自动检测正在使用的框架. | ||
其中 [vendor/joanhey/adapterman/src/frameworks/index.php](https://github.com/joanhey/AdapterMan/blob/master/src/frameworks/index.php) 检测正在使用的框架 | ||
|
||
在浏览器访问 | ||
|
||
```http://localhost:8080``` | ||
|
||
|
||
或者使用 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Thinkphp with Adapterman | ||
|
||
English | [中文](./thinkphp-cn.md) | ||
|
||
```shell | ||
# install adapterman into your project | ||
composer require joanhey/adapterman | ||
# start | ||
./vendor/bin/adapterman start | ||
``` | ||
explain: | ||
1.`./vendor/bin/adapterman start` Actually carried out | ||
|
||
/usr/bin/env php -c vendor/joanhey/adapterman/cli-php.ini vendor/joanhey/adapterman/src/start.php "$@" | ||
|
||
2.php -c [vendor/joanhey/adapterman/cli-php.ini](https://github.com/joanhey/AdapterMan/blob/master/cli-php.ini) After disabling some of the built-in php functions, the adapterman framework implements these disabled functions, so that the functions under fpm will work properly under the php cli | ||
|
||
3.[vendor/joanhey/adapterman/src/start.php](https://github.com/joanhey/AdapterMan/blob/master/src/start.php) The file will automatically start the server and automatically detect which framework is being used. | ||
among [vendor/joanhey/adapterman/src/frameworks/index.php](https://github.com/joanhey/AdapterMan/blob/master/src/frameworks/index.php) Detect the framework being used | ||
View in your browser | ||
|
||
```http://localhost:8080``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters