PHPackages                             sentix/laravel-remotecommand - 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. sentix/laravel-remotecommand

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

sentix/laravel-remotecommand
============================

A remote command execution system for Laravel (secure API based command runner)

1.0.0(1mo ago)03MITPHPPHP &gt;=8.0

Since Jul 8Pushed 1mo agoCompare

[ Source](https://github.com/sentixtech/laravel-remotecommand)[ Packagist](https://packagist.org/packages/sentix/laravel-remotecommand)[ RSS](/packages/sentix-laravel-remotecommand/feed)WikiDiscussions main Synced 1w ago

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

A small Laravel package that exposes a secure API endpoint to run predefined maintenance commands remotely.

Features
--------

[](#features)

- Run built-in maintenance commands via a POST API
- Commands included: BackupDatabase, DeleteFolder, PingProject, SetAppUrl, ShowTables
- Spatie DbDumper used for reliable MySQL backups with a PHP fallback

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

[](#requirements)

- PHP &gt;= 8.0
- Laravel 10, 11, 12, 13 or 14

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

[](#installation)

Install with Composer:

```
composer require sentix/laravel-remotecommand

```

The package registers the service provider and facade automatically via Composer's `extra.laravel` settings.

Usage
-----

[](#usage)

Send a POST request to the package route:

```
POST /remote-command
Content-Type: application/json

{
	"command": "ShowTables",
	"params": {}
}

```

Example using `curl`:

```
curl -X POST http://your-app.test/remote-command \
	-H "Content-Type: application/json" \
	-d '{"command":"ShowTables","params":{}}'

```

Important: Protect this endpoint with authentication or middleware in your app (for example add `auth:sanctum` or IP restrictions) — the package does not enable authentication by default.

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

[](#available-commands)

- `BackupDatabase` — creates a SQL dump in `public/backups/` (uses Spatie DbDumper, falls back to PHP export)
- `DeleteFolder` — deletes a file or directory inside the project (path must be inside project root)
- `PingProject` — performs an HTTP GET to the configured `app.bgUrl`
- `SetAppUrl` — sets `app.bgUrl` in the runtime config for the current request
- `ShowTables` — returns the list of database tables

Refer to the `src/Commands` folder for implementation details.

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

[](#configuration)

- `app.bgUrl` — used by `PingProject`. You can set this in your `config/app.php` or via environment-specific config.

Security Notes
--------------

[](#security-notes)

This package can execute potent operations (file deletion, DB export). Always:

- Restrict the `/remote-command` route with authentication and authorization
- Run in trusted environments only
- Log and audit remote calls

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

[](#contributing)

PRs and issues are welcome. Please follow the repository coding standards and include tests where appropriate.

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

48d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/837022?v=4)[Sentix](/maintainers/Sentix)[@sentix](https://github.com/sentix)

---

Top Contributors

[![sentixtech](https://avatars.githubusercontent.com/u/147980203?v=4)](https://github.com/sentixtech "sentixtech (2 commits)")

### Embed Badge

![Health badge](/badges/sentix-laravel-remotecommand/health.svg)

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.6M7.5k](/packages/illuminate-console)

PHPackages © 2026

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