PHPackages                             sammycorgi/laravel-batch-file-creator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. sammycorgi/laravel-batch-file-creator

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

sammycorgi/laravel-batch-file-creator
=====================================

Useful artisan commands for the creation of batch files for easier laravel development on windows machines

038PHP

Since Jan 16Pushed 3y agoCompare

[ Source](https://github.com/sammycorgi/laravel-batch-file-creator)[ Packagist](https://packagist.org/packages/sammycorgi/laravel-batch-file-creator)[ RSS](/packages/sammycorgi-laravel-batch-file-creator/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

This repository has been archived as much better tools are available.

---

---

---

---

---

---

---

---

---

---

---

---

---

---

---

---

---

---

Laravel Batch File Creator
==========================

[](#laravel-batch-file-creator)

Adds some artisan commands for the generation of batch files so you don't have to open a number of terminals every time you want to start development on a windows machine.

Installation
------------

[](#installation)

Install the package: `composer require sammycorgi/laravel-batch-file-installer`

Laravel should auto discover the package. If it doesn't, run `php artisan package:discover`

Usage
-----

[](#usage)

By default, run `php artisan batch-make:all` to create the default batch files for a new laravel installation. This will create batch files that run the following commands:

Run this command with the `--defaults` flag to skip the questions, and jump straight into generating the scripts based on the default options defined in the config.

- `php artisan serve`
- `php artisan queue:work`
- `php artisan schedule:run`
- `npm run watch` - be sure to install npm or this won't work!
- `cd [project-path]` - opens the terminal to the project path

The script will ask for certain options such as the `php.exe` path and queue worker options.

Config
------

[](#config)

To change these defaults, first publish the config package by running `php artisan vendor:publish --tag=config --provider=Sammycorgi\LaravelBatchFileCreator\ServiceProvider`

This will create a config file at `config/batch.php`

#### Notable config entries

[](#notable-config-entries)

`folder_path` - This is the folder that the batch files will be written to. Default is `base_path('batch')`

`php.exe_path` - Location of the php executable. Default is `C:\xampp\php\php.exe`

`to_write` - The batch files created by the `batch-make:all` command. Be sure that these are in the correct order!

Writing new batch file creators
-------------------------------

[](#writing-new-batch-file-creators)

Create a new class that extends `Sammycorgi\LaravelBatchFileCreator\Commands\BaseBatchWriter`. Make sure to implement the `getContents()` and `getCommandName()` methods!

If the command has any arguments, create an options definition class that extends `Sammycorgi\LaravelBatchFileCreator\Commands\Options\Definitions\Definition` and implement the `getDefinitions()` method. This will return an array of arrays - one array for each option. The `name` of the option is required. You can also define the `default` and the `description` of the option.

Make sure to add an entry to the `definitions` array in the config to map this definition to the command. Syntax is `[creator_class_name] => [definition_class_name (or null if no options)]`

`getContents()` will be the contents of the batch file to be written.

The base class has an `appendContents()` method, which outputs the options and their values to the script.

The `handle()` method that is required for every artisan command is defined in the base class. By default, it writes the content to the batch file and outputs a success message.

If the script needs to access the php executable, use the `Sammycorgi\LaravelBatchFileCreator\Commands\Traits\GetsPhpExecutableInformation` trait and implement the `Sammycorgi\LaravelBatchFileCreator\Commands\Contracts\IUsesPhpExecutable` interface. Call `$this->getPhpExecutablePath()` to get the defined path of the php executable

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35593534?v=4)[Sam Driver](/maintainers/sammycorgi)[@sammycorgi](https://github.com/sammycorgi)

---

Top Contributors

[![sammycorgi](https://avatars.githubusercontent.com/u/35593534?v=4)](https://github.com/sammycorgi "sammycorgi (10 commits)")

### Embed Badge

![Health badge](/badges/sammycorgi-laravel-batch-file-creator/health.svg)

```
[![Health](https://phpackages.com/badges/sammycorgi-laravel-batch-file-creator/health.svg)](https://phpackages.com/packages/sammycorgi-laravel-batch-file-creator)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
