PHPackages                             yolxander/laravel-make-extensions - 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. yolxander/laravel-make-extensions

ActiveLibrary

yolxander/laravel-make-extensions
=================================

Custom Laravel Artisan make commands

v1.3.3(1y ago)06MITPHPPHP &gt;=8.0

Since Mar 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Yolxander/laravel-make-extensions)[ Packagist](https://packagist.org/packages/yolxander/laravel-make-extensions)[ RSS](/packages/yolxander-laravel-make-extensions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

Yolxander Laravel Make Extensions
=================================

[](#yolxander-laravel-make-extensions)

**Yolxander Laravel Make Extensions** is a Composer package that adds custom `php artisan make:*` commands for scaffolding additional file types commonly used in modern Laravel applications. It provides generators for Transformers, API Clients, Integration/API Tests, Domain Events, Value Objects, Services, and Actions, making it easier to maintain a clean project structure.

Features
--------

[](#features)

- **Transformers** (`make:transformer`): Converts your Eloquent models or domain data into consistent JSON response formats.
- **API Clients** (`make:api-client`): Scaffolds classes to handle third-party HTTP calls.
- **Integration Tests** (`make:integration-test`): Quickly create tests for multi-system flows (e.g., DB + external API).
- **API Tests** (`make:api-test`): Generate test boilerplate to verify your application’s API endpoints.
- **Domain Events** (`make:domain-event`): Event classes for Domain-Driven Design or event sourcing.
- **Value Objects** (`make:value-object`): Immutable classes that encapsulate domain logic (e.g., `Money`, `Email`).
- **Services** (`make:service`): Encapsulates business logic or external operations.
- **Actions** (`make:action`): Single-use-case classes to make your application logic more modular.

Requirements
------------

[](#requirements)

- **PHP** `>= 8.0` (or higher)
- **Laravel** `8, 9, 10, 11, or 12` (depending on your version constraints)
- **illuminate/support** and **illuminate/console** matching the above Laravel versions

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

[](#installation)

1. **Install via Composer**:

    ```
    composer require yolxander/laravel-make-extensions
    ```

    Or specify a version constraint if needed:

    ```
    composer require yolxander/laravel-make-extensions:^1.3
    ```
2. **Publish stubs** (optional):

    ```
    php artisan vendor:publish --tag=make-extensions-stubs
    ```

    This will copy the stub files into your project so you can customize them locally (e.g., `stubs/make-extensions/transformer.stub`).

Usage
-----

[](#usage)

Once installed, you should see the following new Artisan commands:

- **Make Transformer**

    ```
    php artisan make:transformer UserTransformer
    ```

    Creates a `UserTransformer` in `app/Transformers` (or your default namespace).
- **Make API Client**

    ```
    php artisan make:api-client SomeServiceClient
    ```

    Generates an `API Client` class in `app/ApiClients`.
- **Make Integration Test**

    ```
    php artisan make:integration-test PaymentIntegrationTest
    ```

    Creates a test in `tests/Integration` for combined system flows.
- **Make API Test**

    ```
    php artisan make:api-test UserApiTest
    ```

    Generates a test class in `tests/Api` (or similar) for endpoint testing.
- **Make Domain Event**

    ```
    php artisan make:domain-event OrderShippedEvent
    ```

    Scaffolds a domain event in `app/Domain/Events`.
- **Make Value Object**

    ```
    php artisan make:value-object Money
    ```

    Creates an immutable class in `app/Domain/ValueObjects`.
- **Make Service**

    ```
    php artisan make:service PaymentService
    ```

    Spawns a service class in `app/Services`.
- **Make Action**

    ```
    php artisan make:action CreateOrderAction
    ```

    Adds an action class in `app/Actions`.

> **Tip**: Each command automatically references a matching stub file. If you’ve published stubs, you can edit them to fit your exact coding style.

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

[](#configuration)

- **Service Provider**: This package includes a service provider (`MakeExtensionsServiceProvider`) that’s auto-discovered by Laravel (thanks to the `"extra"` block in the package’s `composer.json`). No manual registration is needed unless you’re not relying on auto-discovery.
- **Stubs Path**: By default, each command references its stub file at `src/stubs/`. If you publish stubs, you can modify your command classes to point to the published location or leave the defaults as-is.

Contributing
------------

[](#contributing)

1. Fork the repo &amp; clone it locally.
2. Create a new branch for your feature or bug fix: `git checkout -b feature/awesome-new-command`.
3. Commit your changes: `git commit -m "Add a new make:awesome command"`.
4. Push to GitHub: `git push origin feature/awesome-new-command`.
5. Open a Pull Request on GitHub and describe the proposed changes.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE.md). *(Or use “proprietary” or another license, depending on your `composer.json` configuration.)*

---

### About Yolxander Laravel Make Extensions

[](#about-yolxander-laravel-make-extensions)

**Yolxander** designed this package to simplify the scaffolding of additional file types beyond default Laravel commands. With these commands, you can keep your code organized by generating stubs for domain events, value objects, or specialized tests—particularly helpful on teams practicing Domain-Driven Design, advanced testing, or large-scale API development.

For questions, ideas, or support, feel free to open an issue or submit a pull request. Thank you for using **Yolxander Laravel Make Extensions**!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance45

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~0 days

Total

7

Last Release

433d ago

### Community

Maintainers

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

---

Top Contributors

[![YolxanderHC](https://avatars.githubusercontent.com/u/93551115?v=4)](https://github.com/YolxanderHC "YolxanderHC (9 commits)")[![johndoe12312](https://avatars.githubusercontent.com/u/93314665?v=4)](https://github.com/johndoe12312 "johndoe12312 (1 commits)")

### Embed Badge

![Health badge](/badges/yolxander-laravel-make-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/yolxander-laravel-make-extensions/health.svg)](https://phpackages.com/packages/yolxander-laravel-make-extensions)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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