PHPackages                             antonioribeiro/artisan-anywhere - 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. antonioribeiro/artisan-anywhere

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

antonioribeiro/artisan-anywhere
===============================

Run the artisan command, no matter where you are in the project tree

v1.0.0(7y ago)4374↓100%1[1 issues](https://github.com/antonioribeiro/artisan-anywhere/issues)MIT

Since Feb 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/antonioribeiro/artisan-anywhere)[ Packagist](https://packagist.org/packages/antonioribeiro/artisan-anywhere)[ RSS](/packages/antonioribeiro-artisan-anywhere/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Artisan Anywhere
========================

[](#laravel-artisan-anywhere)

### TLDR;

[](#tldr)

This script will recursively look for the artisan command down the directory tree and execute it for you, no matter where you are in the project tree.

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

[](#installation)

Install globally through composer

```
composer global require antonioribeiro/artisan-anywhere
```

Or download the raw file to your /usr/bin and make it executable

```
sudo wget -q -O /usr/local/bin/artisan \
 https://raw.github.com/antonioribeiro/artisan-anywhere/master/artisan

sudo chmod 755 /usr/local/bin/artisan
```

or clone the repo and link it

```
sudo git clone https://github.com/antonioribeiro/artisan-anywhere.git /etc/laravel-anywhere

sudo ln -s /etc/laravel-anywhere/artisan.sh /usr/local/bin/artisan

sudo chmod 755 /usr/local/bin/artisan
```

Usage
-----

[](#usage)

Once installed, by running artisan from your project directory you should get

```
$ artisan
Artisan found at /Users/antoniocarlosribeiro/code/pragmarx/pragmarx.com/artisan
Laravel Framework 5.5.28

Usage:
  command [options] [arguments]

...
```

#### Execute Artisan from anywhere in your Laravel project tree

[](#execute-artisan-from-anywhere-in-your-laravel-project-tree)

Let's suppose you went for a walk, far down the Illuminate tree and, being in

```
$ cd /var/www/laravel/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations

```

and you need to run tinker, to test some stuff. Well... you have some options:

```
php ../../../../../../../../artisan tinker

php /var/www/laravel artisan tinker

cd /var/www/laravel ; php artisan tinker
```

or just

```
artisan tinker
```

Credits
-------

[](#credits)

- [Antonio Carlos Ribeiro](https://github.com/antonioribeiro)
- [Matija Kovačević](https://github.com/matijakovacevic)
- [All Contributors](../../contributors)

#### Contributing

[](#contributing)

Pull requests and issues are more than welcome.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 79.2% 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

2632d ago

### Community

Maintainers

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

---

Top Contributors

[![antonioribeiro](https://avatars.githubusercontent.com/u/3182864?v=4)](https://github.com/antonioribeiro "antonioribeiro (19 commits)")[![matijakovacevic](https://avatars.githubusercontent.com/u/2469719?v=4)](https://github.com/matijakovacevic "matijakovacevic (4 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")

---

Tags

artisanbashlaravellinuxshelllaravelartisancommandglobalrecursive

### Embed Badge

![Health badge](/badges/antonioribeiro-artisan-anywhere/health.svg)

```
[![Health](https://phpackages.com/badges/antonioribeiro-artisan-anywhere/health.svg)](https://phpackages.com/packages/antonioribeiro-artisan-anywhere)
```

PHPackages © 2026

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