{"id":15089850,"url":"https://github.com/dartmoon-io/prestashop-console","last_synced_at":"2026-02-03T05:02:44.423Z","repository":{"id":56962603,"uuid":"438411592","full_name":"dartmoon-io/prestashop-console","owner":"dartmoon-io","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-21T13:53:26.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T04:11:54.003Z","etag":null,"topics":["prestashop","prestashop-library"],"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/dartmoon-io.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-14T21:57:08.000Z","updated_at":"2022-12-21T11:13:43.000Z","dependencies_parsed_at":"2024-09-25T09:02:14.466Z","dependency_job_id":"ebccc766-bbb1-4d04-b27f-90f244df9956","html_url":"https://github.com/dartmoon-io/prestashop-console","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"7b5a6be5b9a84488c2561fd9c726b45bb4c784e0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dartmoon-io/prestashop-console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Fprestashop-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Fprestashop-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Fprestashop-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Fprestashop-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dartmoon-io","download_url":"https://codeload.github.com/dartmoon-io/prestashop-console/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dartmoon-io%2Fprestashop-console/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262056310,"owners_count":23251653,"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":["prestashop","prestashop-library"],"created_at":"2024-09-25T09:02:03.856Z","updated_at":"2026-02-03T05:02:39.399Z","avatar_url":"https://github.com/dartmoon-io.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prestashop Console\nSimple boilerplate to streamline the creation of custom PrestaShop console commands.\n\n## Installation\n\n```bash\ncomposer require dartmoon/prestashop-console\n```\n\n## Usage\n\n### Create command file\nYou can create a command everywhere in the module folder, but for the sake of explanation let's assume we have a folder name `src/Commands`.\n\nLet's create out first command, creating the file `src/Commands/HelloWorldCommand.php`\n\n```php\n\u003c?php\n\nnamespace Dartmoon\\MyModule\\Commands;\n\nuse Dartmoon\\Console\\AbstractCommand;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nclass HelloWorldCommand extends AbstractCommand\n{\n    /**\n     * Name and description\n     */\n    protected $name = 'mymodule:hello-world';\n\n    /**\n     * Command description\n     */\n    protected $description = 'Simple command that says Hello Wold!';\n\n    /**\n     * Execute command\n     */\n    protected function execute(InputInterface $input, OutputInterface $output)\n    {\n        echo \"Hello World!\";\n    }\n}\n```\n\n### Register the command inside PrestaShop\nTo register the command we need to create a file called `services.yml` inside a folder named `config` inside the root of our module.\n\nFile `config/services.yml`\n```yml\nservices:\n    _defaults:\n        autowire: true\n        autoconfigure: true\n\n    console.command.hello-world-command:\n        class: Dartmoon\\MyModule\\Commands\\HelloWorldCommand\n        public: true\n        tags:\n            - { name: \"console.command\" }\n\n```\n\n### Reset the module\nOnce you have registered the command inside the `services.yml` file, you need to reset your module so that PrestaShop can install the command.\n\n\n### Executing the command\nFrom the root of your PrestaShop installation execute:\n\n```bash\nphp bin/console mymodule:hello-world\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE.md file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdartmoon-io%2Fprestashop-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdartmoon-io%2Fprestashop-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdartmoon-io%2Fprestashop-console/lists"}