Download the PHP package jingwu/phpbeanstalk without Composer

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

BEANSTALK ---- 轻量级 beanstalkd 的 php 客户端

说明

本库可直接操作beanstalkd[1]接口,且支持完整的Beanstalk协议。 本库是基于 http://github.com/davidpersson/beanstalk 二次开发。

本库修正了有关网络的部分问题,并完善了单元测试,增加了网络相关的测试脚本。

  1. 增加异常类 BeanstalkException
  2. 增加了 stream_timeout 参数,可设置数据流的网络超时时间,以解决网络异常时,客户端僵死问题
  3. 增加 force_reserve_timeout 参数,强制调用 reserve 时,设置超时时间,默认 1 秒,以解决使用者不注意时,造成的死循环问题
  4. 增加网络异常处理,发送数据时,数据长度与发送成功长度不一致时,将抛出异常
  5. 增加网络异常处理,接收数据时,连续(默认10次)接收到空数据,将抛出异常
  6. 增加日志,通过 trigger_error 产生,对应的错误级别为:E_USER_WARNING
  7. 增加 setMaxNetError 方法,设置允许的网络连续错误次数
  8. 增加 lastError 方法,用于获取最后一次错误信信息
  9. 有关网络问题的测试 请看 batch.md

[1] http://kr.github.com/beanstalkd

Copyright & License

Beanstalk, 轻量级 beanstalkd 的 php 客户端, 版权所有 2018- 菁武. 代码遵守 MIT 协议, 见 LICENSE 文件。

Versions & Requirements

0.1.6, PHP >=5.4.0 (in progress)

Usage

Add jingwu/phpbeanstalk as a dependency in your project's composer.json file (change version to suit your version of Elasticsearch):

单元测试

此库中包括单元测试, 你需要先启动 beanstalkd 实例

$ beanstalkd -VV -l 127.0.0.1 -p 11300

执行如下命令,运行单元测试:

$ cd /path/to/beanstalk/src $ phpunit -c ../phpunit.xml

[1] http://www.phpunit.de/manual/current/en/installation.html


All versions of phpbeanstalk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.1
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 jingwu/phpbeanstalk contains the following files

Loading the files please wait ....