PHPackages                             takuya/php-daemonize-pcntl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. takuya/php-daemonize-pcntl

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

takuya/php-daemonize-pcntl
==========================

0.1.3.1(1y ago)01.2k—0%GPL-3.0-or-laterPHPCI passing

Since Feb 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/takuya/php-daemonize-pcntl)[ Packagist](https://packagist.org/packages/takuya/php-daemonize-pcntl)[ RSS](/packages/takuya-php-daemonize-pcntl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

php-daemonize-pcntl
===================

[](#php-daemonize-pcntl)

daemonize function by pcntl\_fork.

php daemon Daemonize all
------------------------

[](#php-daemon-daemonize-all)

Daemonize any process , written by php ( pcntl )

installing
----------

[](#installing)

from Packagist

```
composer require takuya/php-daemonize-pcntl
```

from GitHub

```
name='php-daemonize-pcntl'
composer config repositories.$name \
vcs https://github.com/takuya/$name
composer require takuya/$name:master
composer install
```

Examples
--------

[](#examples)

### function / Daemonize ( detach tty and parent PID=1)

[](#function--daemonize--detach-tty-and-parent-pid1)

```
