{"id":15561182,"url":"https://github.com/skobel/laravel-install-command","last_synced_at":"2025-03-29T04:18:37.684Z","repository":{"id":57052614,"uuid":"216161717","full_name":"Skobel/laravel-install-command","owner":"Skobel","description":"Configurable install command for Laravel. Simply define your application installation steps so you can deploy your project more easily.","archived":false,"fork":false,"pushed_at":"2019-10-20T13:54:46.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T14:12:06.026Z","etag":null,"topics":["artisan","artisan-command","installation-script","laravel","laravel-framework"],"latest_commit_sha":null,"homepage":null,"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/Skobel.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":"2019-10-19T06:43:23.000Z","updated_at":"2019-10-20T13:54:48.000Z","dependencies_parsed_at":"2022-08-24T05:10:13.204Z","dependency_job_id":null,"html_url":"https://github.com/Skobel/laravel-install-command","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skobel%2Flaravel-install-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skobel%2Flaravel-install-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skobel%2Flaravel-install-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skobel%2Flaravel-install-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skobel","download_url":"https://codeload.github.com/Skobel/laravel-install-command/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246135837,"owners_count":20729065,"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","artisan-command","installation-script","laravel","laravel-framework"],"created_at":"2024-10-02T16:05:59.820Z","updated_at":"2025-03-29T04:18:37.649Z","avatar_url":"https://github.com/Skobel.png","language":"PHP","readme":"# Laravel Artisan Install Command\n\n### Introduction\nUse this package to define your application's installation steps,\nso you can deploy your Laravel project more easily.\n\n![Terminal window](https://static.skobelwebsites.com/Other/Laravel_Installer_Command.png)\n\n### Installation\n\nInstall using composer:\n```\ncomposer require skobel/laravel-install-command\n```\n\nLaravel should automatically discover the service provider.\n\n### Quickstart\nFollow these steps to get started quickly.\n\nRun the setup command:\n```\nphp artisan installer:setup\n```\nThis will create the following files and directories in your `app` folder:\n```\nInstallation/\n    Steps/\n    Configuration.php\n```\n\nIn the newly created `Configuration.php` you can define your installation steps. \nThere are a few default steps available out of the box.\n\n```\nclass Configuration extends \\Skobel\\LaravelInstallCommand\\Configuration\n{\n    public function steps(): array\n    {\n        return [\n            //new CopyDotEnvFile,\n            //new GenerateApplicationKey,\n            //new RunMigrations,\n            //new SeedDatabase,\n        ];\n    }\n}\n```\n\nBegin installation:\n```\nphp artisan install\n```\n\n### Available Steps\n\n| Class name                | Description   |\n| ------------------------- | ------------- |\n| CopyDotEnvFile            | Copy .env.example to .env\n| GenerateApplicationKey    | Run `php artisan key:generate`\n| RunMigrations             | Run your migrations with the `--force` option\n| SeedDatabase              | Seed your database with the `--force` option\n| CreatePassportKeys        | Run `php artisan passport:keys`, use only if you have Laravel Passport installed\n\n### Creating Installation Steps\n\n```\nphp artisan installer:step StepName\n```\nThis will generate a Step class with the given name. Next add this Step to your `steps` array in your configuration:\n```\nuse App\\Installation\\Steps\\StepName;\n\nclass Configuration extends \\Skobel\\LaravelInstallCommand\\Configuration\n{\n    public function steps(): array\n    {\n        return [\n            // ...\n            new StepName,\n        ];\n    }\n}\n```\n\n### Custom Configuration and Directory Structure\nOf course you can place your configuration class and installation steps wherever you want. After you have\nyour configuration class at a custom location add the following code to your `AppServiceProvider`'s boot method.\n```\nuse App\\Installation\\Configuration;\n\n// ...\n\npublic function boot()\n{\n    Installer::use(new Configuration);\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskobel%2Flaravel-install-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskobel%2Flaravel-install-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskobel%2Flaravel-install-command/lists"}