Download the PHP package tourze/doctrine-cron-job-bundle without Composer
On this page you can find all versions of the php package tourze/doctrine-cron-job-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/doctrine-cron-job-bundle
More information about tourze/doctrine-cron-job-bundle
Files in tourze/doctrine-cron-job-bundle
Package doctrine-cron-job-bundle
Short Description Doctrine CronJob Bundle
License MIT
Informations about the package doctrine-cron-job-bundle
Doctrine CronJob Bundle
δΈζ
A Symfony bundle that provides database-managed cron jobs with Doctrine ORM integration. This bundle allows you to store and manage cron jobs and scheduled SQL queries in your database.
Features
- ποΈ Database-managed cron jobs - Store cron job configurations in database
- π Scheduled SQL execution - Execute SQL queries at specified intervals
- π Symfony integration - Seamless integration with Symfony's cron job system
- ποΈ Entity management - Full Doctrine ORM entities with repository services
- π Tracking & auditing - Built-in tracking and user attribution
- β‘ Performance optimized - Efficient query execution with caching support
Requirements
- PHP 8.1 or higher
- Symfony 6.4 or higher
- Doctrine ORM 3.0 or higher
Installation
Quick Start
-
Register the Bundle
-
Create and manage cron jobs
- Create scheduled SQL queries
Configuration
The bundle works out of the box with default settings. For advanced configuration:
Advanced Usage
Custom Providers
You can extend the functionality by creating custom providers:
Repository Usage
Security
- SQL Injection Prevention: All SQL statements are executed through Doctrine's secure query system
- Access Control: Implement proper access controls for managing cron jobs in your application
- Validation: All entities include comprehensive validation constraints
- Audit Trail: Built-in tracking provides full audit capabilities
API Reference
CronJob Entity
setName(string $name)- Set the job namesetCommand(string $command)- Set the command to executesetSchedule(string $schedule)- Set the cron expressionsetDescription(?string $description)- Set job descriptionsetValid(bool $valid)- Enable/disable the job
CronSql Entity
setTitle(string $title)- Set the SQL job titlesetSqlStatement(string $sql)- Set the SQL query to executesetCronExpression(string $expression)- Set the cron expressionsetValid(bool $valid)- Enable/disable the SQL job
Testing
Run the test suite:
All tests pass with 100% coverage:
- β Entity Tests (CronJob, CronSql)
- β Provider Tests (DoctrineProvider, CronSqlProvider)
- β Dependency Injection Tests
- β Bundle Configuration Tests
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Tourze - GitHub Organization
All versions of doctrine-cron-job-bundle with dependencies
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-snowflake-bundle Version 1.0.*
tourze/doctrine-timestamp-bundle Version 1.0.*
tourze/doctrine-track-bundle Version 1.0.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/symfony-cron-job-bundle Version 1.0.*
tourze/symfony-dependency-service-loader Version 1.0.*