{"id":15525162,"url":"https://github.com/antonioribeiro/artisan-anywhere","last_synced_at":"2025-04-23T08:43:53.460Z","repository":{"id":62486113,"uuid":"13510430","full_name":"antonioribeiro/artisan-anywhere","owner":"antonioribeiro","description":"Execute Artisan from anywhere in your Laravel project tree","archived":false,"fork":false,"pushed_at":"2019-02-28T07:57:01.000Z","size":12,"stargazers_count":43,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T21:01:56.613Z","etag":null,"topics":["artisan","bash","laravel","linux","shell"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antonioribeiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-11T21:46:22.000Z","updated_at":"2022-12-29T23:54:07.000Z","dependencies_parsed_at":"2022-11-02T10:02:24.408Z","dependency_job_id":null,"html_url":"https://github.com/antonioribeiro/artisan-anywhere","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioribeiro%2Fartisan-anywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioribeiro%2Fartisan-anywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioribeiro%2Fartisan-anywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonioribeiro%2Fartisan-anywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonioribeiro","download_url":"https://codeload.github.com/antonioribeiro/artisan-anywhere/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250400937,"owners_count":21424484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artisan","bash","laravel","linux","shell"],"created_at":"2024-10-02T10:55:16.243Z","updated_at":"2025-04-23T08:43:53.440Z","avatar_url":"https://github.com/antonioribeiro.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel Artisan Anywhere\n========================\n\n### TLDR;\n\nThis 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.\n\n## Installation\n\nInstall globally through composer\n\n```bash\ncomposer global require antonioribeiro/artisan-anywhere\n```\n\nOr download the raw file to your /usr/bin and make it executable\n\n```bash\nsudo wget -q -O /usr/local/bin/artisan \\\n https://raw.github.com/antonioribeiro/artisan-anywhere/master/artisan\n\nsudo chmod 755 /usr/local/bin/artisan\n```\n\nor clone the repo and link it\n\n```bash\nsudo git clone https://github.com/antonioribeiro/artisan-anywhere.git /etc/laravel-anywhere\n\nsudo ln -s /etc/laravel-anywhere/artisan.sh /usr/local/bin/artisan\n\nsudo chmod 755 /usr/local/bin/artisan\n```\n\n\n## Usage\n\nOnce installed, by running artisan from your project directory you should get\n\n``` bash\n$ artisan\nArtisan found at /Users/antoniocarlosribeiro/code/pragmarx/pragmarx.com/artisan\nLaravel Framework 5.5.28\n\nUsage:\n  command [options] [arguments]\n\n...\n```\n\n#### Execute Artisan from anywhere in your Laravel project tree\n\nLet's suppose you went for a walk, far down the Illuminate tree and, being in \n\n```\n$ cd /var/www/laravel/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations\n```\n\nand you need to run tinker, to test some stuff. Well... you have some options:\n\n```bash\nphp ../../../../../../../../artisan tinker\n\nphp /var/www/laravel artisan tinker\n\ncd /var/www/laravel ; php artisan tinker\n```\n\nor just\n\n```bash\nartisan tinker\n```\n\n## Credits\n\n- [Antonio Carlos Ribeiro](https://github.com/antonioribeiro)\n- [Matija Kovačević](https://github.com/matijakovacevic)\n- [All Contributors](../../contributors)\n\n#### Contributing\n\nPull requests and issues are more than welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonioribeiro%2Fartisan-anywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonioribeiro%2Fartisan-anywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonioribeiro%2Fartisan-anywhere/lists"}