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

Systembundle Laravel Package

box4b/systembundle

View on GitHub
Deep Wiki
Context7

box4b\SystemBundle

Bind Linux System Events (cron, init) with Symfony Event.

Configuration

###AppKernel

add this to your registerBundles() on AppKernel :

new box4b\SystemBundle\SystemBundle()

###For Cron

Create a /etc/cron.d/box4bsystem file containing :

* * * * *	[YOUR_USER]	/usr/bin/php [PATH_TO_SYMFONY_PROJECT]/app/console box4b:cron --env=prod > /dev/null 2> /dev/null

###For Init / Systemd

Create a file calling /usr/bin/php [PATH_TO_SYMFONY_PROJECT]/app/console box4b:init [start|stop]

Usage

Use Symfony Event Listener System to listen for events :

###Init

  • box4b\SystemBundle\Event\InitEvent::EVENT_START
  • box4b\SystemBundle\Event\InitEvent::EVENT_STOP

###Cron

  • box4b\SystemBundle\Event\CronEvent::EVERY_MINUTE
  • box4b\SystemBundle\Event\CronEvent::EVERY_FIVE_MINUTES
  • box4b\SystemBundle\Event\CronEvent::EVERY_HOUR
  • box4b\SystemBundle\Event\CronEvent::EVERY_DAY
  • box4b\SystemBundle\Event\CronEvent::EVERY_WEEK

Enjoy :)

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator