{"id":36981349,"url":"https://github.com/eonx-com/schedule-bundle","last_synced_at":"2026-01-13T22:51:11.880Z","repository":{"id":56978353,"uuid":"224294853","full_name":"eonx-com/schedule-bundle","owner":"eonx-com","description":"[READ-ONLY] Provides the Command Scheduling logic of Laravel in a Symfony application","archived":true,"fork":false,"pushed_at":"2020-03-17T06:30:40.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T13:07:31.349Z","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/eonx-com.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-11-26T22:09:07.000Z","updated_at":"2023-01-28T04:44:41.000Z","dependencies_parsed_at":"2022-08-21T08:10:55.130Z","dependency_job_id":null,"html_url":"https://github.com/eonx-com/schedule-bundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eonx-com/schedule-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fschedule-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fschedule-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fschedule-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fschedule-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eonx-com","download_url":"https://codeload.github.com/eonx-com/schedule-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fschedule-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-13T22:51:11.089Z","updated_at":"2026-01-13T22:51:11.875Z","avatar_url":"https://github.com/eonx-com.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eEonX - ScheduleBundle\u003c/h1\u003e\n    \u003cp\u003eProvides the Command Scheduling logic of Laravel in a Symfony application.\u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## Installation\n\n```bash\n$ composer require eonx-com/schedule-bundle\n```\n\nUntil a recipe is created for this bundle you will need to register it manually:\n\n```php\n// config/bundles.php\n\nreturn [\n    // Other bundles...\n    \n    EonX\\ScheduleBundle\\ScheduleBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n## Usage\n\n### Register Your Scheduled Commands\n\nTo register the scheduled commands this bundle implements a concept of \"schedule providers\", thanks to Symfony's\nautoconfigure feature, the only thing required is to create services that implement `EonX\\ScheduleBundle\\Interfaces\\ScheduleProviderInterface`.\nThe `ScheduleInterface` passed to the `schedule` method offers all the features of the [Laravel Console Scheduling][1].\n\n```php\n// src/Schedule/MyScheduleProvider.php\n\nuse EonX\\ScheduleBundle\\Interfaces\\ScheduleProviderInterface;\n\nfinal class MyScheduleProvider implements ScheduleProviderInterface\n{\n    /**\n     * Schedule command on given schedule.\n     *\n     * @param \\EonX\\ScheduleBundle\\Interfaces\\ScheduleInterface $schedule\n     *\n     * @return void\n     */\n    public function schedule(ScheduleInterface $schedule): void\n    {\n        $schedule\n            -\u003ecommand('poc:hello-world', ['-v'])\n            -\u003eeveryMinute()\n            -\u003esetMaxLockTime(120);\n    \n        $schedule\n            -\u003ecommand('poc:hello-world-2')\n            -\u003eeveryFiveMinutes();\n        }\n    }\n}\n```\n\n### Run The Schedule\n\nThis bundle providers a console command to run the schedule:\n\n```bash\n$ php bin/console schedule:run\n```\n\n[1]: https://laravel.com/docs/5.8/scheduling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonx-com%2Fschedule-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feonx-com%2Fschedule-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonx-com%2Fschedule-bundle/lists"}