Download the PHP package depaco/codeigniter-swoole without Composer

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

Codeigniter Swoole Adapter

You want long-run task? timers? FPM to CLI? Code reusing in both FPM & CLI mode?

"It's so easy!"

This adapter would make it so easy to using swoole within Codeigniter framework.

With this adapter, you can start a task(CLI) any where(FPM) you want from your code.

That's means you can start a CLI task from a FPM process.

Install

How to

  1. first, of course you must install codeigniter-swoole to your codeigniter project.
  2. (this step is option) copy these two config files swoole.php and timers.php from src/Helper to your application/config folder.
  3. start swoole server php index.php swoole/server/start
  4. you can use \CiSwoole\Core\Client::send($data) to start a task now!
  5. there's no step 5.

What is a task?

A task is just a method of your codeigniter controlloer, so almost any controller method can be used as a task.

Let's see the code

The route is used for find which method to be call as a task, and params is the parameters array that you may want to pass to the task.

fd and callback params are used to notify about task errors.

So, that's all of it!

Server CLI Commands

A little more

The step 2 copied files were config files for this adapter.

swoole.php file can set host, port, log file and so on.

timers.php file can set some timer methods for swoole server, these timers will be started once the server inited.

You can copy tests/application to your application for testing. The demos are same as below shows.

License

This project is licensed under the MIT license.


All versions of codeigniter-swoole with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-swoole Version ^4.0.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 depaco/codeigniter-swoole contains the following files

Loading the files please wait ....