.github/workflows/ci.yml 0000644 00000010111 14030725474 0011257 0 ustar 00 name: Continuous Integration on: push: null pull_request: branches: - master jobs: unit_tests: strategy: matrix: include: - operating-system: 'ubuntu-latest' php-version: '7.0' - operating-system: 'ubuntu-latest' php-version: '7.1' - operating-system: 'ubuntu-latest' php-version: '7.2' - operating-system: 'ubuntu-latest' php-version: '7.3' - operating-system: 'ubuntu-latest' php-version: '7.4' - operating-system: 'ubuntu-latest' php-version: '8.0' composer-flags: '--ignore-platform-req=php' - operating-system: 'windows-latest' php-version: '8.0' composer-flags: '--ignore-platform-req=php' - operating-system: 'macos-latest' php-version: '8.0' composer-flags: '--ignore-platform-req=php' name: PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} runs-on: ${{ matrix.operating-system }} steps: - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - name: Use LF line ends run: | git config --global core.autocrlf false git config --global core.eol lf - name: Checkout code uses: actions/checkout@v2 - name: Get Composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-dir)" - name: Cache dependencies uses: actions/cache@v2 with: path: ${{ steps.composer-cache.outputs.dir }} key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}-${{ matrix.composer-flags }} restore-keys: | composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}- composer-${{ runner.os }}-${{ matrix.php-version }}- - name: Install dependencies uses: nick-invision/retry@v2 with: timeout_minutes: 5 max_attempts: 5 retry_wait_seconds: 30 command: | php_version=$(php -v) composer update --optimize-autoloader --no-interaction --no-progress ${{ matrix.composer-flags }} composer info -D - name: Run unit tests run: vendor/bin/phpunit --verbose coding_standards: strategy: matrix: include: - operating-system: 'ubuntu-latest' php-version: '8.0' composer-flags: '--ignore-platform-req=php' name: Coding standards runs-on: ${{ matrix.operating-system }} steps: - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - name: Use LF line ends run: | git config --global core.autocrlf false git config --global core.eol lf - name: Checkout code uses: actions/checkout@v2 - name: Get Composer cache directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-dir)" - name: Cache dependencies uses: actions/cache@v2 with: path: ${{ steps.composer-cache.outputs.dir }} key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}-${{ matrix.composer-flags }} restore-keys: | composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}- composer-${{ runner.os }}-${{ matrix.php-version }}- - name: Install dependencies uses: nick-invision/retry@v2 with: timeout_minutes: 5 max_attempts: 5 retry_wait_seconds: 30 command: | php_version=$(php -v) composer update --optimize-autoloader --no-interaction --no-progress ${{ matrix.composer-flags }} composer info -D - name: Run style fixer env: PHP_CS_FIXER_IGNORE_ENV: 1 run: vendor/bin/php-cs-fixer --diff --dry-run -v fix .php_cs 0000644 00000000335 14030725474 0006030 0 ustar 00 getFinder() ->in(__DIR__ . '/examples') ->in(__DIR__ . '/lib') ->in(__DIR__ . '/test'); $config->setCacheFile(__DIR__ . '/.php_cs.cache'); return $config; LICENSE 0000644 00000002065 14030725474 0005562 0 ustar 00 The MIT License (MIT) Copyright (c) 2017-2021 amphp 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. README.md 0000644 00000003053 14030725474 0006032 0 ustar 00 # process
This package provides an asynchronous process dispatcher that works on all major platforms (including Windows). As Windows pipes are file handles and do not allow non-blocking access, this package makes use of a [process wrapper](https://github.com/amphp/windows-process-wrapper), that provides access to these pipes via sockets. On Unix-like systems it uses the standard pipes, as these can be accessed without blocking there. Concurrency is managed by the [Amp](https://github.com/amphp/amp) event loop. ## Installation This package can be installed as a [Composer](https://getcomposer.org/) dependency. ``` composer require amphp/process ``` ## Requirements * PHP 7.0+ ## Versioning `amphp/process` follows the [semver](http://semver.org/) semantic versioning specification like all other `amphp` packages. ## Security If you discover any security related issues, please email [`me@kelunik.com`](mailto:me@kelunik.com) instead of using the issue tracker. ## License The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. appveyor.yml 0000644 00000002455 14030725474 0007150 0 ustar 00 build: false shallow_clone: false platform: - x86 - x64 clone_folder: c:\projects\amphp cache: - c:\tools\php74 -> appveyor.yml init: - SET PATH=C:\Program Files\OpenSSL;c:\tools\php74;%PATH% - SET COMPOSER_NO_INTERACTION=1 - SET PHP=1 - SET ANSICON=121x90 (121x90) install: - IF EXIST c:\tools\php74 (SET PHP=0) - IF %PHP%==1 sc config wuauserv start= auto - IF %PHP%==1 net start wuauserv - IF %PHP%==1 cinst -y OpenSSL.Light - IF %PHP%==1 cinst -y php - cd c:\tools\php74 - IF %PHP%==1 copy php.ini-production php.ini /Y - IF %PHP%==1 echo date.timezone="UTC" >> php.ini - IF %PHP%==1 echo extension_dir=ext >> php.ini - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini - cd c:\projects\amphp - appveyor DownloadFile https://getcomposer.org/composer.phar - php composer.phar install --prefer-dist --no-progress test_script: - cd c:\projects\amphp - phpdbg -qrr vendor/phpunit/phpunit/phpunit --colors=always --coverage-text --coverage-clover build/logs/clover.xml # Disable for now, because it can't be combined and files can't be shown on coveralls.io # https://github.com/php-coveralls/php-coveralls/issues/234 # - vendor/bin/coveralls -v bin/windows/ProcessWrapper.exe 0000644 00000232000 14030725474 0012473 0 ustar 00 MZ @ !L!This program cannot be run in DOS mode. $ ύύύÍӋ͍Ӊ͍ӏݍӎrAʍύeӂ̍euύeӈRichύ PE L h%s\ ( 1- @ @ @ TY p @ PU p U @ @ p .text &