PHPackages                             alablaster/foreman - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alablaster/foreman

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alablaster/foreman
==================

Generator utility for Laravel Projects

v1.0.1(4y ago)08MITPHPPHP ^8.1

Since Feb 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/salaback/foreman)[ Packagist](https://packagist.org/packages/alablaster/foreman)[ RSS](/packages/alablaster-foreman/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Alablaster/Foreman
==================

[](#alablasterforeman)

[![PHP Composer](https://github.com/salaback/foreman/actions/workflows/php.yml/badge.svg)](https://github.com/salaback/foreman/actions/workflows/php.yml)

A generator utility for creating Laravel Projects

Install
-------

[](#install)

To install the package in a Laravel Project run the following command.

`$ composer install alablaster/foreman`

Configuration
-------------

[](#configuration)

To publish the configuration file run:

`$ php artisan vendor:publish --provider=="Alablaster\Foreman\ForemanServiceProvider"`

In the config files you can define the base namespace. In an Laravel project this is App by default, though if you are creating a package is might be your package name, like "Alablaster\\Foreman". Namespaces should be defined in studly case with for slashes.

Use
---

[](#use)

The following commands and arguments are supported by Foreman. To generate a full entity run the following command:

`$ php artisan foreman:entity Model --N=Path\To\Namespace --D=Domain`

commandargumentsoptionsNotesforeman:controllermodelNamespace, Domainforeman:entitymodelNamespace, DomainGenerates a model, migration, controller, factory, resource and request classes, and adds a route to the route file.foreman:factorymodelNamespaceforeman:migrationmodelforeman:resourcemodelNamespace, DomainGenerates a Resource, a CollectionResource and a Collection Class.foreman:requestsmodelNamespace, DomainGenerates both a Create and Update request class.foreman:routemodelNamespace, DomainCan be run multiple times to add more routes to the routes file.Customization
-------------

[](#customization)

After publishing the vendor files will generate a `stubs` directory in the base of the project. These templates can be modified to and used to generate files using the Foreman commands.

In the template, passed variables can be accessed using a mustache like sintax, for example `{{ model }}`. Variables can be modified using a variety of filters through a dot notation, for example {{ model.lowercase.plural }}. This includes all of Laravel's Str class helpers. Additionally, it includes `leadingBackSlash`, `trailingForwardSlash`, `trailingDot`,

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~7 days

Total

2

Last Release

1546d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf272420cd55c0c18e6e3a57fe323a676f79acfb9db6a9edab6ddd3224a82ef5?d=identicon)[salaback](/maintainers/salaback)

---

Top Contributors

[![salaback](https://avatars.githubusercontent.com/u/3797673?v=4)](https://github.com/salaback "salaback (32 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alablaster-foreman/health.svg)

```
[![Health](https://phpackages.com/badges/alablaster-foreman/health.svg)](https://phpackages.com/packages/alablaster-foreman)
```

###  Alternatives

[petrabarus/yii2-googleplacesautocomplete

Google Places Auto Complete input widget for Yii2

106.4k](/packages/petrabarus-yii2-googleplacesautocomplete)

PHPackages © 2026

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