This package contains the base project for a CLI package using Ulrack.
To create a new project, run the following command:
composer create-project ulrack/cli-edition
This project can be used to setup a CLI application using PHP. The documentation of the following packages can be helpful to read prior to starting development.
- Why the locator.php file?
- How to create commands
- How services work
- How the kernel works
- Install the PECL YAML dependency
The following "invisible" services are available from the kernel:
services.core.object.manager
services.core.codec.manager
services.core.resource.manager
services.core.cache.manager
services.core.validation.manager
services.core.service.manager
services.core.configuration.manager
services.core.object.manager
Their names directly correlate to the Kernel managers that can be found in the ulrack/kernel package. However it is recommended to avoid using these as much as possible, unless explicitely required.
The bin/application
file can be freely renamed to anything else.
To turn the file into an executable, run the following command:
chmod u+x bin/application
If there are any questions, never hesitate to ask! :)
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Copyright (c) GrizzIT
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.