{"id":18797228,"url":"https://github.com/dfurnes/environmentalist","last_synced_at":"2026-01-01T04:30:14.993Z","repository":{"id":48655712,"uuid":"107930221","full_name":"DFurnes/environmentalist","owner":"DFurnes","description":"🌱 Dead-simple setup for Laravel apps.","archived":false,"fork":false,"pushed_at":"2021-07-15T15:19:16.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T17:49:53.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/DFurnes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-23T04:00:41.000Z","updated_at":"2021-07-15T15:18:49.000Z","dependencies_parsed_at":"2022-09-11T03:00:35.503Z","dependency_job_id":null,"html_url":"https://github.com/DFurnes/environmentalist","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFurnes%2Fenvironmentalist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFurnes%2Fenvironmentalist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFurnes%2Fenvironmentalist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFurnes%2Fenvironmentalist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DFurnes","download_url":"https://codeload.github.com/DFurnes/environmentalist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727075,"owners_count":19687098,"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":[],"created_at":"2024-11-07T22:07:31.635Z","updated_at":"2026-01-01T04:30:14.935Z","avatar_url":"https://github.com/DFurnes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Environmentalist [![Packagist](https://img.shields.io/packagist/v/DFurnes/environmentalist.svg?style=flat)](https://packagist.org/packages/DFurnes/environmentalist)\n\n**Dead-simple setup for Laravel apps.** Environmentalist is a collection of handy tools for making setup scripts with [Artisan](https://laravel.com/docs/5.5/artisan). Easily create an environment file, prompt the user for values (with smart defaults \u0026 autocomplete), and run commands - all without needing to write out or follow lengthy directions.\n\n### Installation\n\nTo install this package simply add it to your Laravel project using composer:\n\n```shell\n$ composer require dfurnes/environmentalist\n```\n\n### Usage\n\nEnvironmentalist is essentially a [PHP trait](https://www.php.net/manual/en/language.oop5.traits.php) that provides a collection of helpful methods that you can use within your console commands for setting up a project.\n\nTo begin using it, you need to create a console command in your Laravel project. As an exmaple, let's create a new `SetupCommand` for our project:\n\n```shell\n$ php artisan make:command SetupCommand\n```\n\nIn the `app/Console/Commands` directory, you should have a new `SetupCommand.php` file.\n\nNow\n\nNow, within this file, you can `use` the `ConfiguresApplication` trait in the class and import the file:\n\n```php\nnamespace App\\Console\\Commands;\n\nuse DFurnes\\Environmentalist\\ConfiguresApplication;\nuse Illuminate\\Console\\Command;\n\nclass SetupCommand extends Command\n{\n    use ConfiguresApplication;\n\n    /**\n     * The name and signature of the console command.\n     *\n     * @var string\n     */\n    protected $signature = 'setup';\n\n    /**\n     * The console command description.\n     *\n     * @var string\n     */\n    protected $description = 'Configure your application.';\n\n    /**\n     * Create a new command instance.\n     *\n     * @return void\n     */\n    public function __construct()\n    {\n        parent::__construct();\n    }\n\n    /**\n     * Execute the console command.\n     *\n     * @return void\n     */\n    public function handle()\n    {\n        // Setup code and environmentalist configuration methods used here!\n    }\n\n}\n```\n\nBe sure to set a `$signature` to define the name of the command to run, and a `$description` that describes what it does.\n\n### License\n\nMIT \u0026copy; [David Furnes](https://dfurnes.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfurnes%2Fenvironmentalist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfurnes%2Fenvironmentalist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfurnes%2Fenvironmentalist/lists"}