Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Bernard Scheduler Bundle

Bernard Scheduler Bundle Laravel Package

pompdelux/bernard-scheduler-bundle

A Symfony bundle that adds scheduled jobs to Bernard, the PHP queue library. Define cron-style recurring tasks and dispatch them to your queues so background workers handle timed work without a separate scheduler. Useful for projects already using Bernard for async processing.

View on GitHub
Deep Wiki
Context7

Adds scheduling to BernardPHP for symfony.

Frequently asked questions about Bernard Scheduler Bundle
Does pompdelux/bernard-scheduler-bundle work with Laravel?
No. It is a Symfony bundle built for Bernard, the PHP queue library, and does not integrate with Laravel's queue or scheduler APIs. Laravel applications should use Laravel's built-in task scheduler with queue workers instead.
What is pompdelux/bernard-scheduler-bundle used for?
It adds cron-style recurring job scheduling to Bernard inside Symfony applications. You define timed tasks and the bundle dispatches them to Bernard queues so background workers can process them. It is aimed at projects already using Bernard for async processing and that want scheduled work without a separate scheduler service.
How do I install pompdelux/bernard-scheduler-bundle?
Install it with Composer using composer require pompdelux/bernard-scheduler-bundle. In a Symfony application, register the bundle in config/bundles.php if Symfony Flex does not enable it automatically. Then configure your Bernard queues and scheduled jobs according to the repository README.
How do I define cron-style scheduled jobs with this bundle?
The bundle is designed for cron-style recurring task definitions that dispatch jobs to Bernard queues. The exact configuration format and API are not included in the provided overview, so follow the usage examples in the GitHub README. You will typically define schedules in Symfony configuration or service wiring and let the bundle enqueue jobs when they are due.
Do I still need cron or a long-running process to run the scheduler?
Yes, in practice something must trigger the scheduler loop. The bundle removes the need for a separate scheduling service, but you still need a cron entry or a long-running Symfony console process to run the scheduler command. Bernard workers then consume the queued jobs that the scheduler dispatches.
Which Symfony and Bernard versions are supported?
The provided context does not list exact version constraints for Symfony or Bernard. Check the package's composer.json and README on GitHub for the supported version ranges before installing. This matters because Bernard and Symfony have had breaking changes across major releases.
Can I use this bundle with Symfony Messenger instead of Bernard?
No, this bundle is specifically built to add scheduling to Bernard queues. If your Symfony application uses Symfony Messenger, look at Symfony's Scheduler component or Messenger scheduling options instead. The bundle is only a fit when Bernard is already your queue layer.
Is pompdelux/bernard-scheduler-bundle actively maintained?
The provided context does not state its maintenance status. Review the GitHub repository for recent commits, tagged releases, and unresolved issues before using it in production. If the project appears stale, consider whether Symfony's native Scheduler component or a cron-driven approach is a safer long-term choice.
What are good alternatives to this bundle for scheduled jobs?
For Symfony, the Symfony Scheduler component and cron plus Messenger workers are common alternatives. If you are already using Bernard, this bundle is the natural fit because it dispatches scheduled work directly to Bernard queues. Laravel developers should use Laravel's scheduler, and plain crontab is still an option for simple timed commands.
How should I test scheduled jobs in a Symfony app using this bundle?
Test the job classes themselves as normal units and use Symfony's command tester or test container to exercise scheduler integration. The provided context does not document a dedicated test helper, so check the README for recommended patterns. You can also assert that due schedules enqueue the expected Bernard jobs using a test queue or mock.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle