Download the PHP package novora/kaizen-bundle without Composer

On this page you can find all versions of the php package novora/kaizen-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 kaizen-bundle

Novora KaizenBundle

Find waste. Understand causes. Improve your Symfony application.

v1.0 product scope · MIT open source. A focused Lean improvement workspace for Symfony applications, not another log viewer.

The problem: developers find an exception, patch it, and lose the evidence of which issues recur, why they happened, and whether the change actually helped. Kaizen makes that loop traceable: Prioritize → Investigate → Improve → Verify. It works on existing Monolog files, without an APM server, external telemetry, a database migration, or AI-generated guesses.

For: Symfony teams with a readable Monolog log and an authenticated admin area. Not for: enterprise APM, production tracing, cross-host observability, guaranteed automated root-cause detection, or quantitative uptime claims.

Release criteria

What is available

This is a deliberately scoped v1.0 tool, not production-grade APM. Automatic traces, SQL instrumentation, multi-server data aggregation, alerting, AI analysis and automatic impact scoring are not implemented.

Supported environment

PHP 8.2+, Symfony 7.4 or Symfony 8.x. TwigBundle and SecurityBundle are required.

Installation

Prerequisites: PHP 8.2+, Symfony 7.4 or Symfony 8.x, TwigBundle, SecurityBundle, a readable Monolog log file, and a private directory writable by the PHP-FPM worker. The acceptance flow was smoke-tested with PHP 8.2.33 / Symfony 7.4 and PHP 8.4.25 / Symfony 8.1 in separate Composer-installed host projects.

After the public v1.0.0 tag is published and indexed on Packagist:

composer require 'novora/kaizen-bundle:^1.0'

Until the public release is available, use a reviewed development commit from the source repository. Composer version discovery is based on Git tags; do not assume a release tag exists merely because it is documented.

Configuration

Register the bundle in your application's config/bundles.php:

Novora\KaizenBundle\NovoraKaizenBundle::class => ['all' => true],

Import the routes explicitly using config/routes/novora_kaizen.yaml:

novora_kaizen:
    resource: '@NovoraKaizenBundle/Controller/'
    type: attribute

This creates a dashboard at /_kaizen and investigation pages below /_kaizen/investigations. Importing routes is optional: the read-only CLI also works without it.

The web UI enforces ROLE_ADMIN at controller level. Configure the application's authentication and authorize this path before permissive access-control rules:

# config/packages/security.yaml (merge under the existing security key)
security:
    access_control:
        - { path: '^/_kaizen(?:/|$)', roles: ROLE_ADMIN }

Enable CSRF services if necessary:

# config/packages/framework.yaml (merge into existing framework configuration)
framework:
    csrf_protection: true

Configuration (config/packages/novora_kaizen.yaml):

novora_kaizen:
    log_path: '%kernel.logs_dir%/%kernel.environment%.log'
    storage_dir: '%kernel.project_dir%/var/kaizen'
    max_bytes: 2097152
    correlation_enabled: false # opt in explicitly

The storage directory must be outside the public webroot, readable and writable by the PHP-FPM worker, not merely by the CLI user. New directories are created with permission 0700 and data files 0600. A misconfigured storage directory triggers a visible warning on the admin pages and a specific error in the server logs; fix ownership rather than using chmod 777. Do not have the CLI and HTTP processes create/update investigations as different Unix users. This local store supports one host/shared filesystem, not independent multi-node writes.

Storage preflight (from the application directory; replace the UID/name with your PHP-FPM worker):

namei -l var/kaizen
sudo -u '#33' test -w var/kaizen && echo 'Kaizen storage writable'

If it is not writable, create or change only var/kaizen to be owned by the actual worker UID (33 is just an example). Do not recursively chmod the project or var/. PHP-FPM worker identities vary by deployment.

Optional execution correlation

Requires Symfony MonologBundle in the host app and Monolog 3. Enable in config/packages/novora_kaizen.yaml:

novora_kaizen:
    correlation_enabled: true

Clear the application's container cache and generate new HTTP requests, CLI commands or Messenger jobs. The bundle registers a Monolog processor and emits only two fields in the record's extra context:

No request payloads, full URLs, cookies, headers, IP addresses or user IDs are collected. The same HTTP request shares one ID (including subrequests). CLI uses one ID per PHP process. When Messenger is installed, each worker-received message gets its own ID; the message scope is cleared after handled, failed and worker-running events.

Open /_kaizen and inspect Execution correlation. It shows whether correlation is enabled in the current Symfony environment, the number of tagged log entries (any severity), the number of executions observed in those entries, and separately the executions that contain error-level records. An enabled processor with zero tagged entries is not proof of failure: existing sampled logs may predate activation or handlers may not write successful requests.

Counts and timelines use only IDs present in the current bounded log sample. Unique observed executions are not necessarily unique incidents or root causes. All old log records without IDs remain uncorrelated. Enabling this setting does not backfill history.

This requires a log destination/formatter that preserves Monolog extra metadata (the standard line and JSON formatters are supported). Disabling correlation stops writing new IDs without changing existing log history. No database migrations or external infrastructure are needed.

CLI

php bin/console kaizen:analyze var/log/prod.log --limit=15
php bin/console kaizen:analyze var/log/prod.log --max-bytes=4194304

If the configured file is missing, unreadable, empty, or contains no recognized records, the dashboard reports that no reliable log data is available instead of implying there are no application failures. Fix the source or configure a supported Monolog file formatter before interpreting the counts.

The command reads a bounded tail, up to 16 MiB, and applies the same best-effort display redaction as the UI. It ignores unknown formats and multiline continuations. If your Monolog sends logs to php://stderr, systemd or a container log driver, configure a readable file source first: the viewer does not automatically retrieve those streams.

Lean methodology

  1. Observe high-frequency events in Waste Radar. Their count is not equivalent to business impact.
  2. Start an investigation from a recurring pattern or create a case manually.
  3. Record direct observations in Gemba, including timestamps and supporting metrics.
  4. Add multiple Ishikawa hypotheses. Evidence is mandatory before confirming a cause.
  5. Record 5 Whys answers, then capture a countermeasure, baseline, outcome and standardization in PDCA.
  6. In the case's PDCA section, record the correction time. Leave the datetime blank to use the current server time, or choose when the fix was applied previously; the displayed timezone is the host application's PHP timezone. A fingerprint-linked case created from the Pareto list is required.
  7. Check the before/after numbers, sample coverage, first/last seen, and the overall post-correction recurrence count. These are event counts from the configured log tail, not rates normalized by traffic. The equal windows cover up to the first 24 hours after the fix; a separate count includes any later occurrences still in the sample.
  8. Only close a case manually after assessing comparable activity and the actual effect. "No recurrence observed" is a candidate, not verified resolution. If the baseline has rotated away or there is no post-fix log activity, the analyzer says "Insufficient evidence".

Security and data

Local development

composer install
vendor/bin/phpunit
find src tests -name '*.php' -print0 | xargs -0 -n1 php -l

Pull requests and main are validated by the small PHP 8.2 / PHP 8.4 CI matrix using the corresponding Symfony 7.4 / 8.1 dependency branches.

Community

We welcome focused contributions that remove waste without adding unnecessary complexity. See Accessibility. Issue and pull request templates are provided in the .github directory.

All published code is available under the MIT License.


All versions of kaizen-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/framework-bundle Version ^7.4 || ^8.0
symfony/console Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/twig-bundle Version ^7.4 || ^8.0
symfony/security-bundle Version ^7.4 || ^8.0
symfony/security-csrf Version ^7.4 || ^8.0
monolog/monolog Version ^3.0
symfony/polyfill-mbstring Version ^1.31
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 novora/kaizen-bundle contains the following files

Loading the files please wait ...