Download the PHP package onlyphp/simple-queue without Composer

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

PHP Simple Queue

A framework-agnostic queue system for PHP that seamlessly integrates with multiple database systems and frameworks. This package offers Laravel-inspired queue functionality without the need for cron jobs, enabling you to effortlessly dispatch jobs with various processing types, including closures, static class methods, object methods, global functions, and invokable classes. This package supports databases such as PDO, MySQL, MSSQL, Oracle and is compatible with CodeIgniter 3, CodeIgniter 4, and Laravel framework.

⚠️ Warning

DO NOT USE THIS PACKAGE.

This package is under active development and may contain critical bugs. It is primarily intended for personal use and testing within my own projects.

This version has not undergone rigorous testing and may be unstable or unreliable.

🛠️ Primary Focus (Testing & Development):

⏭️ Supported (Experimental):

✨ Features

📝 Requirements

🔧 Installation

Install via Composer:

🚀 Basic Usage

Initialize with Different Databases

🖥️ Priority Levels

🎯 Examples

Simple Jobs

Advanced Jobs

1. Email Processing Queue

2. File Processing Queue

3. Order Processing System

4. Data Export Jobs

5. Image Processing Queue

6. Calling global function without classes

7. Invokable Classes

⚙️ Configuration Options

📊 Monitoring and Management

📅 Database Tables

The package automatically creates two tables:

👍 Best Practices

  1. Job Naming: Always set meaningful names for jobs using setName() for better tracking.
  2. Timeouts: Set appropriate timeouts based on job complexity.
  3. Retries: Configure max retries based on job criticality.
  4. Priority: Use priorities wisely - reserve 'urgent' for truly time-critical tasks.

🔍 Error Handling

The package handles various types of errors:

Failed jobs are automatically logged with full stack traces in the failed_jobs table.

📛 Limitations

📌 To-do Improvements

  1. Implement job events/hooks
  2. Add support for job batching
  3. Add Redis/memory queue support
  4. Add job progress tracking
  5. Implement job middleware support
  6. Add support for unique jobs
  7. Add job chaining capabilities

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License.

🏷️ Changelog

Click to view the changelog ### v1.0.0 * Initial release. ### v1.0.1 * Removed `SerializableClosure` helper. * Fixed CodeIgniter 3 table creation issues. * Added support for `MY_Model` as a custom model for CodeIgniter 3. * Added `opis/closure` library to support serializable closures.

All versions of simple-queue with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
opis/closure Version ^4.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 onlyphp/simple-queue contains the following files

Loading the files please wait ....