Weave Code
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.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours