Download the PHP package marcin-orlowski/lombok-php without Composer
On this page you can find all versions of the php package marcin-orlowski/lombok-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marcin-orlowski/lombok-php
More information about marcin-orlowski/lombok-php
Files in marcin-orlowski/lombok-php
Package lombok-php
Short Description Never write boilerplate code for your data class again!
License LGPL-3.0-only
Homepage https://github.com/MarcinOrlowski/lombok-php
Informations about the package lombok-php
Table of contents
- Introduction
- Why should I use it?
- Usage examples
- Documentation
- License
- Changelog
Introduction
Lombok PHP is a package offering a growing set
of PHP attributes (a
feature introduced in PHP 8.0) designed to help reduce
boilerplate code in your project by providing commonly used functionality that can be easily
applied.
The main goal is to provide all the functionality at runtime, without any intermediate steps needed and without generating any additional code files.
And yes, the project name is shamelessly borrowed from the beloved Java's Project Lombok. However, it is not affiliated in any way; it's merely a nod to the scope and (target) functionality.
Benefits
- Less code to write and maintain,
- No more repetitive boilerplate code,
- Can coexist with other attributes (i.e., Doctrine, etc.),
- No code generation (all handled on-the-fly),
- No additional dependencies,
- Supports object cloning,
- Production ready.
Examples
Vanilla PHP:
Using Lombok PHP (inheritance from \Lombok\Helper is helpful
but optional):
Click here to see setup instruction and all the technical details.
License
- Written and copyrighted ©2022-2026 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
Lombok PHPis open-sourced software licensed under the LGPL 3.0