Download the PHP package buzzingpixel/corbomite-schedule without Composer
On this page you can find all versions of the php package buzzingpixel/corbomite-schedule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buzzingpixel/corbomite-schedule
More information about buzzingpixel/corbomite-schedule
Files in buzzingpixel/corbomite-schedule
Package corbomite-schedule
Short Description Corbomite Schedule
License Apache-2.0
Informations about the package corbomite-schedule
Corbomite Schedule
Part of BuzzingPixel's Corbomite project.
Provides a method for scheduling things to run.
Usage
When you require this into a Corbomite project, the CLI commands and dependency injection config will automatically be set up.
Installation
Corbomite Schedule needs to add a database table in order to function. In order to do this, it needs to create some migrations which then need to be run. Run the create-migrations command, which will place migration files in your Corobomite project.
After running that command, you'll need to run the migrations:
Running the schedule
In dev, you'll probably just want to run the schedule manually. The command to do that is:
In production you'll want to set it to run on a cron every minute. Here's an example:
Registering a schedule
Your app or composer package can provide a schedule. To do so, set a scheduleConfigFilePath
key in the extra
object of your composer.json:
The return of your config file path should be an array formatted like this:
License
Copyright 2019 BuzzingPixel, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
All versions of corbomite-schedule with dependencies
buzzingpixel/corbomite-config-collector Version ^1.0
buzzingpixel/corbomite-db Version ^1.2.1
buzzingpixel/corbomite-di Version ^1.0
buzzingpixel/corbomite-migrations Version ^1.0
symfony/filesystem Version ^4.2