Lightweight PHP Framework

Maintainers

Package info

github.com/krystal-framework/krystal.framework

pkg:composer/no-global-state/krystal

Statistics

Installs: 109

Dependents: 1

Suggesters: 0

Stars: 3

Open Issues: 2

1.2 2015-12-06 11:30 UTC

This package is not auto-updated.

Last update: 2026-03-29 04:02:25 UTC


README

Modern. Lightweight. Developer-first PHP framework.

Krystal Framework is designed for developers who want a clean, efficient, and productive environment without unnecessary complexity.

Why Krystal?

Extremely simple and intuitive API

Predictable naming, minimal boilerplate, and clear conventions let you focus on building features instead of fighting the framework.

Clean MVC architecture — done right

Straightforward controllers, views, and dynamic routing. No heavy ORM or ActiveRecord. Lightweight Data Mappers + Service objects encourage clean separation of concerns, testability, and maintainable code.

All essential tools included out of the box

  • Logging, caching, validation, form handling, pagination, flash messages, data mappers, SEO helpers.
  • Image processing (resize, crop, thumbnails, AVIF/WebP conversion, batch optimization)
  • And many other common tools — no need for dozens of third-party packages.

Built-in code generator

Quickly scaffold controllers, services, forms, migrations, admin CRUD interfaces, and more.

Minimal footprint

Small core size (~2 MB), fast boot time, very few dependencies. Performs well even in resource-constrained environments.

Clear and concise documentation

Straightforward examples, no overwhelming walls of text — easy to get started and productive quickly.

Who is Krystal for?

  • Developers who value simplicity and speed of development
  • Small to medium-sized projects, MVPs, internal tools, admin panels, and APIs
  • Teams that prefer explicit, maintainable code over heavy abstractions
  • Anyone building modern PHP applications (PHP 8.2+) without framework fatigue

License

Licensed under the BSD-3-Clause License.

Contributing

Fork the repo, create a feature branch, make your changes, push the branch, and open a pull request.

Security vulnerabilities

If you believe you have discovered a security vulnerability in Krystal Framework, please help us keep our users safe by following responsible disclosure practices.

Do not report security issues via public GitHub issues, pull requests, discussions, or any other public channels — this could expose users before a fix is available.

How to report a vulnerability

Please send a detailed report privately to the project maintainer:

Email: contact@krystal-framework.dev

Include the following in your report (the more details, the faster we can respond and verify):

  • A clear description of the vulnerability
  • Steps to reproduce (PoC code / script is extremely helpful)
  • Affected versions / components
  • Potential impact (e.g. XSS, SQL injection, RCE, privilege escalation, data leak…)
  • Any suggested mitigation or fix (optional but very appreciated)
  • Your name/handle and contact info (if you want credit / acknowledgment)