Download the PHP package sue/event-loop without Composer

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

EventLoop组件

提供基于ReactPHP提供全局唯一的EventLoop

What is ReactPHP?

ReactPHP是一款基于PHP的事件驱动的组件。核心是提供EventLoop,然后提供基于EventLoop上的各种组件,比方说I/O处理,定时器等。

Table of Contents

loop

获取全局唯一eventLoop对象

isLoopRunning

判断全局的eventloop是不是正在运行中

await

await($promise, $timeout)启动一个临时eventloop来处理promise, 当promise被settle后终止当前eventloop. 该方法适用于传统的阻塞php模型(比如php-fpm)中使用异步的特性. 方法返回promise resolved的值或者抛出异常 该方法无法在一个已启动eventloop中使用

setTimeout

setTimeout方法可以在eventloop上添加一个一次性的timer

setInterval

setInterval方法可以在eventloop上添加一个可以重复执行的timer

cancelTimer

cancelTimer可以取消一个已经注册的timer对象

nextTick

nextTick可以在eventloop上注册一个在下一轮tick时执行的回调 对比setTimeout(0, $callback), nextTick($callback)有更高优先级

throttle

throttle(节流)可以在eventloop上创建一个一次性的timer,但是会在N秒内同样的操作只会执行一次

throttleById

throttleById方法同throttle,除了需要自行设置唯一id值,throttle是由callable的性质来计算唯一id

debounce

debounce(防抖)可以在eventloop上注册一个一次性timer, 但是在N秒内每次同样的操作都会延迟N秒后再执行

debounceById

debounceById方法同debounce,除了需要自行设置唯一id值

install

tests

git clone项目后执行

License

The MIT License (MIT)

Copyright (c) 2023 Donghai Zhang

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.


All versions of event-loop with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
react/event-loop Version ^1.3
react/promise Version ^2.9
react/promise-timer Version ^1.10
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 sue/event-loop contains the following files

Loading the files please wait ....