CLI to manage PHP project creation 📦
There are a lot of tools nowadays to setup your very first project such as configuring linters, static analyzers, testing, preparing composer configuration, CI, CD, containerization...
PHPXC is a CLI that helps you manage all that stuff.
Highly inspired of TSDX
- You need to keep up to date your dependencies
- You will probably need to remove some tools you are not needed for a specific project
- You will create a plenty of repositories to cover basic use-cases
- Create a specific project which meets your needs
- Create custom template, reuse it and share
- Automate creation with a commands and cover with validations
- Be up to date with the latest version and get most actual and hype technologies without any effort
- PHP 8.0 + yarn extension
composer global require lsbproject/phpxc
or use docker
docker run -v "$PWD":/home/phpxc -it 22116/phpxc
There is a main command create
to build a template. (Also there are several
developing helper commands which this documentation will not cover)
phpxc create <project-path>
This will trigger default standard
template to be asked. You can also change this behaviour
specifying template option:
phpxc create -t <template-path/saved-template-name/repository-url> <project-path>
Pass all questions and chill.
- Improve
standard
template with a more options - Make
standard
template review. Probably it should be split with several templates (cli / web / library / microservice...), because of anarchy in the code right now - Add more templates
- (Might not be) Consider to make template inheritance