PHPackages                             eren/laravel-commands - 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. eren/laravel-commands

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

eren/laravel-commands
=====================

Laravel all custom commands for daily development

1.1(1y ago)0289[1 PRs](https://github.com/NoumanAhmad448/laravel-commands/pulls)MITPHPCI passing

Since Mar 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/NoumanAhmad448/laravel-commands)[ Packagist](https://packagist.org/packages/eren/laravel-commands)[ RSS](/packages/eren-laravel-commands/feed)WikiDiscussions master Synced today

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

Laravel Commands Package
========================

[](#laravel-commands-package)

This Laravel package provides custom Artisan commands to simplify common tasks, such as creating symbolic links, deleting files, and generating Contracts and Responses with service provider bindings.

---

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

[](#installation)

1. Install the package via Composer:

    ```
    composer require eren/laravel-commands
    ```
2. (Optional) Publish the package configuration file:

    ```
    php artisan vendor:publish --provider="Eren\LaravelCommands\Providers\LCServiceProvider"
    ```

---

Available Commands
------------------

[](#available-commands)

### 1. `storage:link-custom`

[](#1-storagelink-custom)

Create a symbolic link from `public/storage` to `storage/app/public`. If the link already exists, it will be skipped. Additionally, it creates an `uploads` folder if it doesn’t exist.

#### Usage

[](#usage)

```
php artisan storage:link-custom
```

#### Behavior

[](#behavior)

- Creates a symbolic link: `public/storage` → `storage/app/public`.
- Creates an `uploads` folder in `storage/app` if it doesn’t exist.

---

### 2. `files:delete-all`

[](#2-filesdelete-all)

Delete all files from a specified directory. If no path is provided, it defaults to `storage/app/uploads`.

#### Usage

[](#usage-1)

```
php artisan files:delete-all {path?}
```

#### Examples

[](#examples)

- Delete files from the default `uploads` folder: ```
    php artisan files:delete-all
    ```
- Delete files from a custom path: ```
    php artisan files:delete-all /path/to/folder
    ```

#### Behavior

[](#behavior-1)

- Deletes all files in the specified directory.
- If no path is provided, it defaults to `storage/app/uploads`.

---

### 3. `make:contract-response`

[](#3-makecontract-response)

Generate a Contract and Response class, and bind them in a service provider.

#### Usage

[](#usage-2)

```
php artisan make:contract-response {name} {--provider=HomeController1Provider}
```

#### Examples

[](#examples-1)

- Generate `AuthContract` and `AuthResponse`: ```
    php artisan make:contract-response Auth
    ```
- Specify a custom service provider: ```
    php artisan make:contract-response Auth --provider=CustomServiceProvider
    ```

#### Behavior

[](#behavior-2)

- Creates a Contract class in `app/Http/Contracts/{Name}Contract.php`.
- Creates a Response class in `app/Http/Responses/{Name}Response.php`.
- Binds the Contract and Response in the specified service provider (default: `HomeController1Provider`).
- If the service provider doesn’t exist, it will be created automatically.

---

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

[](#configuration)

You can customize the behavior of the package by publishing the configuration file:

1. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="Eren\LaravelCommands\Providers\LCServiceProvider"
    ```
2. Update the configuration file located at `config/laravel-commands.php`.

---

Testing
-------

[](#testing)

To run the package’s tests, use the following command:

```
./vendor/bin/phpunit
```

or

```
php artisan test
```

---

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

[](#contributing)

Contributions are welcome! Please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bugfix.
3. Submit a pull request.

---

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

---

Support
-------

[](#support)

If you encounter any issues or have questions, please open an issue on the [GitHub repository](https://github.com/noumanahmad448/laravel-commands).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance44

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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 ~2 days

Total

2

Last Release

466d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39010?v=4)[Eren Türkay](/maintainers/eren)[@eren](https://github.com/eren)

---

Top Contributors

[![NoumanAhmad448](https://avatars.githubusercontent.com/u/31096570?v=4)](https://github.com/NoumanAhmad448 "NoumanAhmad448 (49 commits)")

---

Tags

custom-packagelaravellaravel-composer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eren-laravel-commands/health.svg)

```
[![Health](https://phpackages.com/badges/eren-laravel-commands/health.svg)](https://phpackages.com/packages/eren-laravel-commands)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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