Download the PHP package hinashiki/fuelphp-queue without Composer

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

fuelphp-queue

Add original queue system to FuelPHP 1.7.x or later.
This is FuelPHP package. If you want to use, please use as package.
How to install : http://fuelphp.com/docs/general/packages.html#/installing

Preparation

  1. Install Orm package.
    This package depends on fuelphp orm package.
    If you don't have orm package, please install before use this.

Easy Usage

  1. Push queue in your application.

Model_Taskqueue documentation

save_queue($method, $options, $duplicate_type = null, $priority = null)

Push task queue.

String $method

Method name that you want to call. Method must be defined static.

Array $options

Method's arguments.

Integer $duplicate_type

You can define and set queue type.
If you run queue in parallel, $duplicate_type can set max queue that you execute to each type.
Please also check the config queue.duplicate_type if you use this option.

Integer $priority

You can define and set queue's priority.
If you have many task in task_queues, Model_TaskQueue::pick() choose most minimum priority queue.
Please also check the config queue.queue_default_priority if you use this option.

Task documentation

php oil refine queues

Run a queue. Queue is selected by Model_Taskqueue::pickup().
This task can use in parallel. Also you can set execute limit by queue.queue_parallel_number.

php oil refine queues:clean

Delete old queues that succeeded before than 2 weeks.
This delete is physical delete.
If you change this term, please change config queue.success_queue_delete_term.

Config documentation

queue.duplicate_type

Can set Integer key and Integer value.
Key is taks_queues.duplicate_type value in database table, and value is parallel execute limit.
If not set value in this config and set value in db value, Model_TaskQueue::pickup()throw OutOfRangeException.

Notice: You can't set 0 key in this config because 0 used as default value.

queue.zombie_recover_time

Limitation of queue execute time.
If queue status stay 'exec' over this time, status is back to 'wait'
when use Model_Taskqueue::recover_zombie_queues() or run next queue task.
Default value is -1 hour.

queue.success_queue_delete_term

Set the physical delete term.
when call the task php oil refine queues:clean, delete old queues that succeeded before than you set.
Default value is -14 days.

queue.queue_parallel_number

Number of you can execute task queues in Parallel.
Default value is 3.

queue.queue_default_priority

Can set priority number. 0 is top priority.
You can set task priority when queue insert using Model_TaskQueue::save_queue().
Default value is 100.

queue.queue_pid_prefix

Task queues are managed by pid file. Pid file is created tmp directory in your application.
You can set original pid prefix for avoid name confliction.
Default value is queue.

queue.logical_delete

Logical delete schema setting.
Default values are above.


All versions of fuelphp-queue with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ~1.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 hinashiki/fuelphp-queue contains the following files

Loading the files please wait ....