Download the PHP package aex/php-async without Composer

On this page you can find all versions of the php package aex/php-async. 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-async

php-async

license LICENSE

介绍

php-async 是基于 PHP 开发的,方便开发者直接在本地调试远程 测试服务器 代码的工具

特性

安装

composer require aex/php-async ^1.0.0 -vvv

使用

服务端:(async_server.php)

<?php
require "../vendor/autoload.php";
use Aex\PhpAsync\PhpAsync;

$config = []; // 下面会说明各配置项
$p = new PhpAsync($config);
$p->fireServer();

php async_server.php

客户端 (async_client.php)

<?php
require "../vendor/autoload.php";
use Aex\PhpAsync\PhpAsync;

$config = []; // 下面会说明各配置项
$p = new PhpAsync($config);
$p->fireClient();

php async_client.php

配置

服务端

$config = [
    'ip' => '0.0.0.0', // 监听的ip
    'port' => 8313, // 监听的端口
    'server-async-path' => '/code/test_code/', // 服务端同步目录的绝对路径,以/(DIRECTORY_SEPARATOR)结尾
    'duplicate_name_suffix' => '.pasync', // 副本文件后缀(生成的临时文件,应避免是你项目会用到的后缀)
    'command_separator' => '(::)' // 命令分隔符
];

客户端

$config = [
    'ip' => '127.0.0.1', // 服务端ip
    'port' => 8313, // 服务端端口
    'client-async-path' => '/code/test_code/', // 客户端同步目录的绝对路径,以/(DIRECTORY_SEPARATOR)结尾
    'duplicate_name_suffix' => '.pasync', // 副本文件后缀(生成的临时文件,应避免是你项目慧勇斗啊)
    'command_separator' => '(::)' // 命令分隔符
];

说明: 此项目应该避免在生产环境使用,除非你非常了解他可能存在的问题,且能够快速恢复被修改的文件 不配置任何项目直接运行,项目会同步 vendor/aex/php-async/test_code/下的 client 和 server目录 你可以尝试修改client下的文件看server目录的结果 php-async 运行之前默认认为服务端代码和客户端代码是一致的,只会检测到开始运行后增量的变化

使用场景举例

在开发微信项目的时候,很多api只能在外部服务器测试使用,在测试服务器直接修改代码又不能运行得心应手的IDE,如果服务器使用git 本地代码每次修改都要提交并推送,即使只是修改了一行调试代码。服务器同时需要拉取代码,即使配置钩子,也要有个配置钩子的成本。 使用 php-async 使得你每次本地修改,几乎都能立刻(间隔5秒)在测试环境看到调试效果。调试完成你可以使用 git revert 还原代码

已知BUG

因为精力有限,次要BUG 会后续慢慢修复

License


php-async is licensed under The MIT License (MIT).


All versions of php-async with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.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 aex/php-async contains the following files

Loading the files please wait ....