Download the PHP package folded/queue without Composer

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

folded/history

Queue job management for your web app.

Build Status Maintainability TODOs

Summary

About

I created this library to be able to easily create jobs to enqueue and retrieve in a later time. I use it for tasks that I don't want to block on my PHP requests (like sending an email after an account has been created, which I can send later).

Folded is a constellation of packages to help you setting up a web app easily, using ready to plug in packages.

Features

Requirements

Installation

1. Install the package

In your root folder, run this command:

2. Add the bootstrap code

As early as possible, and by making sure the code is ran before add or get jobs in a queue:

Check the examples for a complete list of drivers and type of queue, as well as constants to avoid writting the queue drivers and type by hand.

Examples

1. Add a job to a queue

In this example, we will add a job to a queue.

If you used the "file" driver, you will see a new default.job file containing your job.

If you want to organize in multiple queue identified by a special name, use the third parameter:

If you use the "file" driver, you will see a new emails.job file named after the name of your queue, and containing your job.

2. Get a job from a queue

In this example, we will get the first job in our queue.

As you can see, you will get an instance of Folded\QueueJob when getting the job quuee.

By default, you retreive jobs from the "default" queue. If you use the "file" driver, the job is taken from the "default.job" queue file.

When a job is taken, it is removed from the queue.

If you need to get a job from a named queue, use the first parameter:

For instance, if you use the "file" driver, this will take the job from the "emails.job" queue file.

3. Check if there is a job to process from a queue

In this example, we will check if there is a job to process from a queue.

By default, this method will check if a job is available from the default queue. if you need to check from a named queue, use the first parameter:

4. Set the queue driver

In this example, we will set the queue driver.

Here is a list of supported queue drivers:

If you do not want to write the queue driver by hand, you can use constants instead:

Here is a list of available constants:

5. Set the queue type

In this example, we will set the kind of job retreival.

Here is a list of supported queue types:

If you do not want to write the queue type by hand, you can use constants instead:

So the previous code snippet becomes:

Version support

7.3 7.4 8.0
v0.1.0 ✔️

All versions of queue with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
webmozart/assert Version 1.*
doctrine/dbal Version 2.*
folded/file Version 0.2.*
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 folded/queue contains the following files

Loading the files please wait ....