Download the PHP package dealerinspire/laravel-operations without Composer

On this page you can find all versions of the php package dealerinspire/laravel-operations. 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 laravel-operations

Laravel Operations

Operations allow you to schedule your jobs in a programmatic, database-driven way. By creating an operation record in your database and then calling the Operator to queue any operations that are ready to be run, you can schedule tasks for execution in the far future and keep track of every operation that has already been run.

Installation

Install the package by requiring it with Composer.

The service provider will get registered automatically, but you will need to publish the config file.

Usage

Here is an example of a very simple Operation:

If you would like to use dependency injection, you can add type-hinted parameters to your run function to be injected at runtime.

Operations are Eloquent models, and can have whatever columns on them that you want. The only requirement is that they have three additional timestamp columns, should_run_at, started_run_at, and finished_run_at.

To make sure that the Operator knows about all of your operations you should add the classname to the config\operations.php file.

To put any operations that are ready to run into your job queue, you should call the Operator's queue function.

Any operation that has a should_run_at timestamp which is in the past and has a null started_run_at value (and also hasn't been deleted) will be put into your job queue.

An operation's started_run_at timestamp will be set to the current time as soon as it is placed into your queue (not when the job actually begins getting processed by a worker). Once the operation has been run by a worker the finished_run_at timestamp will be set.

You can quickly create new operations (which will be placed in your App\Operations directory) by running the make:operation.

There is also a --migration flag that you can use to create a migration with the necessary timestamps.

Documentation

More in-depth information on best practices and how to use operations effectively.

Once you're familiar with using operations, check out some these docs on more advanced features.

License

MIT © Dealer Inspire


All versions of laravel-operations with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5
laravel/framework Version ^7.0|^8.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 dealerinspire/laravel-operations contains the following files

Loading the files please wait ....