Skip to content

Releases: ash-jc-allen/laravel-executor

Laravel Executor v2.2.0

06 Dec 00:29
Compare
Choose a tag to compare

New Features

Added support for PHP 8 (#18)

As of Laravel Executor v2.2.0, the package can now be run using PHP 8.

Laravel Executor v2.1.1

08 Oct 22:15
Compare
Choose a tag to compare

Laravel Executor v2.1.1

Bug Fixes

Fixed generator command bug (#17)

As of Laravel 7 (laravel/framework#33423), the handle() method in the command stub changed from // to return 0. This meant that if you created an Executor with a command, it wouldn't correctly update the method body and add the Executor to the command ready for running.

Laravel Executor v2.1.0

05 Oct 21:34
09fd0c2
Compare
Choose a tag to compare

Laravel Executor v2.1.0

New Features

Added a timeOut option for the Artisan and external commands (#14)

As of Laravel Executor v2.1.0, you can now explicitly define the timeout for the process running your command. For example, to set the timeout for non-interactive external and Artisan commands to be 30 seconds, you could use the following:

<?php

namespace App\Executor;

use AshAllenDesign\LaravelExecutor\Classes\Executor;

class AppUpdate extends Executor
{
    public function run(): Executor
    {
        return $this->runExternal('composer install', false, 30)->runArtisan('cache:clear', false, 30);
    }
}

Laravel Executor v2.0.0

16 Sep 10:31
817dbfd
Compare
Choose a tag to compare

Laravel Executor v2.0.0

New Features

Added the functionality to run interactive commands. (#9, #10)

Previously, there was no way to interact with any commands that needed input to be run properly. Now, you can run interactive commands by passing true as the second parameter to the ->runExternal() or ->runArtisan() methods.

Huge thanks to Ahmad Masabni on this!

Added support for Laravel 8 (#12)

Laravel Executor now has support for Laravel 8 and Guzzle 7.

Laravel Executor v1.1.0

07 Jul 00:35
e3aacf8
Compare
Choose a tag to compare

Laravel Executor v1.1.0

New Features

Added functionality to ping a URL (#8)

If you're using your Executor for updating your application on a live server, you might want to ping a URL when it's finished. This could be useful for sending a webhook to alert you that the scripts have run successfully. To ping a URL, you can simply use the ->ping() method.

The example below shows how to ping a website:

<?php

namespace App\Executor;

use AshAllenDesign\LaravelExecutor\Classes\Executor;

class AppUpdate extends Executor
{
    public function run(): Executor
    {
        return $this->ping('https://ashallendesign.co.uk/executor-webhook-route');
    }
}

Laravel Executor v1.0.1

26 Jun 22:28
Compare
Choose a tag to compare

Laravel Executor v1.0.1

New Features

Fixed bug that was preventing error outputs from being stored

This patch release fixes a small bug that was preventing any console error messages from being added to the $output variable in the Executor class. Although the error message would be output to the console (if running via the console), the error message wouldn't be available by calling the ->getOutput() method on the Executor class.

Laravel Executor v1.0.0

26 Jun 15:38
Compare
Choose a tag to compare

Initial release for production.