Download the PHP package mjkruszewski/plumbok without Composer
On this page you can find all versions of the php package mjkruszewski/plumbok. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mjkruszewski/plumbok
More information about mjkruszewski/plumbok
Files in mjkruszewski/plumbok
Package plumbok
Short Description Runtime Code Generator like Lombok for PHP
License MIT
Informations about the package plumbok
Plumbok
Runtime Code Generator like Lombok for PHP.
Code generation starts when additional autoloader detects class uses Plumbok annotations and loads newly generated code with added methods in preprocess step.
Installation
Install with Composer
Usage
Using autoloader at runtime on develop
Registering additional autoloader:
Using annotations in class:
After first run your original code will be little modified with additional docblock ennotations (tags) in PhpDocumentor style.
This preprocessing step allows IDE to recognise generated methods from docblock. Second step is including generated code which looks like:
Using prebuild command in CLI for test and prod
Use CLI to run plumbok
executable.
Note! This usage still requires adding autoload in bootstrap file!
Using CLI to run plumbok
executable and replace source code with generated one.
Additional options:
--ext
,-e
pass file extension to look classes for, defaultphp
--no-tags
won't push@method
tags into source file--inline
will replace source code with generated one-v|vv|vvv
increases verbosity--help
,-h
display help
License
The MIT License (MIT)
Copyright (c) 2018 Michał Brzuchalski [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All versions of plumbok with dependencies
doctrine/annotations Version 1.*
phpdocumentor/reflection-docblock Version ^4.3
symfony/console Version ^4.0
nikic/php-parser Version 4.*
doctrine/inflector Version ^1.3