Download the PHP package phil/scheduled-transitions-bundle without Composer

On this page you can find all versions of the php package phil/scheduled-transitions-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package scheduled-transitions-bundle

phil/scheduled-transitions-bundle

Publish a page on Monday at nine, unpublish it a month later, without anyone online.

phil/scheduled-transitions-bundle plans transitions for a moment in a Symfony application. A transition is a name, such as publish, unpublish or archive, applied to a resource at a given time. It is kept in Doctrine until it is due, then applied by a TransitionHandler the application writes, or through symfony/workflow with its guards and events. A handler that throws is a failed attempt: the transition stays pending and is tried again at the next run, until its attempts are spent. Planning the same transition twice for a resource moves it instead of doubling it.

It is for an application where editors prepare content ahead of time: an announcement that goes live at a set hour, a promotion that ends on its own, a page that is archived after an event. The bundle knows nothing of what publishing means for a page; the handler or the workflow does.

The bundle runs from Symfony Scheduler, which consumes a message every minute by default, or from phil:scheduled-transitions:run in a cron job when there is no worker. Resources are named through phil/resource. The design keeps the planning, the attempts and the running in the bundle, and leaves the effect of each transition to a port, so one schedule serves every kind of resource.

Status

Part State
ScheduledTransition, TransitionStatus, the repository port Implemented and tested
Scheduler: schedule, move, cancel, run what is due; TransitionHandler, RunReport Implemented and tested
DoctrineScheduledTransitionRepository Implemented and tested
WorkflowTransitionHandler, SubjectResolver Implemented and tested
Symfony Scheduler: the phil_transitions schedule; phil:scheduled-transitions:run Implemented and tested

Documentation

Document What it covers
Installation Requirements, registering, configuration, the table.
Scheduling Scheduling, moving, cancelling, runs and retries.
Handlers A handler of the application's own; the workflow handler.
Running Symfony Scheduler, or the command from cron; runs that overlap; a handler that breaks the entity manager.
Extension points What an application implements, configures, replaces or relies on.
Testing How the bundle is tested.
Reference Every type of the bundle.

Quick start

Requirements

PHP 8.5 or later with ext-mbstring; Doctrine ORM 3.7; PSR-20; Symfony 8.2's dependency injection, config and UID; phil/resource 0.1 for resource references. Symfony Scheduler and Messenger, Workflow and Console are optional.

Contributing

Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.

License

MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.


All versions of scheduled-transitions-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-mbstring Version *
doctrine/dbal Version ^4.5
doctrine/orm Version ^3.7
phil/resource Version ^0.1@dev
psr/clock Version ^1.0
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/uid Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phil/scheduled-transitions-bundle contains the following files

Loading the files please wait ...