2017 © Pedro PelĂĄez
 

library laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands

image

hmazter/laravel-schedule-list

Laravel package to add command to list all scheduled artisan commands

  • Monday, May 21, 2018
  • by hmazter
  • Repository
  • 2 Watchers
  • 28 Stars
  • 39,448 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 2 Open issues
  • 14 Versions
  • 13 % Grown

The README.md

Laravel Schedule List

Build Status StyleCI, (*1)

Latest Stable Version Latest Unstable Version Total Downloads License, (*2)

Laravel 5.6+ package to add a artisan command to list all scheduled artisan commands. With schedule time (cron expression), the command to execute and the command description., (*3)

Install

Require this package with composer using the following command:, (*4)

composer require hmazter/laravel-schedule-list

Note! For Laravel version 5.5 and below use 0.2.0 tag., (*5)

Usage

Usage from the command line to show all your scheduled artisan commands:, (*6)

php artisan schedule:list

Outputs:, (*7)

 +--------------+---------------------+--------------+-------------------------------+
 | expression   | next run at         | command      | description                   |
 +--------------+---------------------+--------------+-------------------------------+
 | 0 14 * * 3 * | 2017-08-16 14:00:00 | email:export | Export users to email service |
 +--------------+---------------------+--------------+-------------------------------+

Crontab style output

Use --cron to show the output in the same style as it would go in a crontab file., (*8)

Outputs:, (*9)

0 14 * * 3 * '/usr/local/bin/php' 'artisan' email:export > '/dev/null' 2>&1`

Verbose output

Use -vv to show the full command, including php binary path and output path., (*10)

Outputs:, (*11)

+--------------+---------------------+----------------------------------------------------------------+-------------------------------+
| expression   | next run at         | command                                                        | description                   |
+--------------+---------------------+----------------------------------------------------------------+-------------------------------+
| 0 14 * * 3 * | 2017-08-16 14:00:00 | '/usr/local/bin/php' 'artisan' email:export > '/dev/null' 2>&1 | Export users to email service |
+--------------+---------------------+----------------------------------------------------------------+-------------------------------+

Using -vv together with --cron does not change to output from normal --cron output., (*12)

Programmatic use

For occasions when you need to access the list of scheduled events programmatically \Hmazter\LaravelScheduleList\ScheduleList::all exists that will return all the scheduled events as an array of ScheduleEvent., (*13)

Inject the ScheduleList or resolve it from the Container and then call all() to get all scheduled events. Usage of it can be seen in ListScheduler::handle, (*14)

Define PHP Binary Path

If you use custom PHP Binary paths or you are using \Hmazter\LaravelScheduleList\ScheduleList::all within the context of a web application and not through the console, you can publish the package config file and defining your own binary path:, (*15)

php artisan vendor:publish --provider="Hmazter\LaravelScheduleList\ScheduleListServiceProvider" --tag="config"

For example config/schedule-list.php:, (*16)

<?php

return [
    'remove_strings_from_command' => [
        "'".PHP_BINARY."'",
        "'artisan'",
    ],
];

Known limitations

Laravel ships with some special scheduling functions ex between, unlessBetween, when and skip these are not handled right now in the schedule listing output. They are evaluated at each execution of the schedule and does not define any expression that can be included in the table., (*17)

The Versions

21/05 2018

dev-master

9999999-dev

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

09/03 2018

v1.0.0

1.0.0.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

08/03 2018

dev-refactor-schedule-event

dev-refactor-schedule-event

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

08/03 2018

dev-support-laravel-below-5.6

dev-support-laravel-below-5.6

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

23/02 2018

dev-public-getter-for-scheduled-events

dev-public-getter-for-scheduled-events

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

22/02 2018

dev-update-cron-dependency

dev-update-cron-dependency

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

08/02 2018

v0.2.1

0.2.1.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

14/08 2017

v0.2.0

0.2.0.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

12/08 2017

v0.1.5

0.1.5.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

28/01 2017

v0.1.4

0.1.4.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

30/12 2015

v0.1.3

0.1.3.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

console artisan laravel5

28/12 2015

v0.1.2

0.1.2.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel console artisan

16/09 2015

v0.1.1

0.1.1.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel console artisan

13/08 2015

v0.1.0

0.1.0.0

Laravel package to add command to list all scheduled artisan commands

  Sources   Download

MIT

The Requires

 

laravel console artisan