Download the PHP package zbin/php-deamon without Composer

On this page you can find all versions of the php package zbin/php-deamon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-deamon

php-deamon

php守护进程框架+

使用场景

需要一个程序一直在console循环执行,例如轮询消费队列消息等。

一、安装

相关配置

$processConfig轮询脚本配置

$swooleConfig主进程配置

二、在框架中使用

yii2框架

新建一个footman对象,传入processConfig数组,如下脚本在每次执行完成后间隔的时间

class HelloController extends Controller { public function actionIndex($message = 'hello world') { $processConfig = [ [ 'action_path' => 'sub/run', 'run_interval' => 5, 'param' => ['ben', 25,] ], [ 'action_path' => 'son/test', 'run_interval' => 10, 'param' => ['zeng', 2018,] ] ]; // run in background 后台运行 // $swooleConfig = ['daemonize' => 1]; // $new = new footman($processConfig, $swooleConfig); $new = new footman($processConfig); $new->run(); } }

curl "127.0.0.1:9501?show=detail" 或者(如果不希望浏览器可以访问,建议关闭出网端口) view-source:http://127.0.0.1:9501/?show=detail

<<=========[son/test]=========>> run_count : 36 run_interval : 10 last_start_time : 2018-03-24 06:37:20 last_end_time : 2018-03-24 06:37:20 last_run_msg : success last_run_ret : 0 run_param : ["ben",25]

```


All versions of php-deamon with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.1
yiisoft/yii2 Version >2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zbin/php-deamon contains the following files

Loading the files please wait ....