droath / project-x
Manage project development workflow.
Installs: 5 655
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 28
Requires
- php: >=5.5
- boedah/robo-drush: ^3.0
- consolidation/robo: ^1.0
- droath/console-form: ~0.0.7
- droath/hostsfile-manager: ^0.0.1
- droath/robo-docker-compose: ^0.0.7
- droath/robo-docker-sync: ^0.0.1
- droath/robo-github: ^0.0.2
- droath/robo-google-lighthouse: ^1.0
- fitbug/symfony-yaml-serializer-encoder-decoder: ^0.1.1
- geerlingguy/ping: ^1.1
- paragonie/random_compat: ^2.0
- symfony/cache: ^3.2
- symfony/console: ^2.8|^3.0
- symfony/finder: ^2.8|^3.0
- symfony/property-access: 2.8|^3.0
- symfony/serializer: 2.8|^3.0
- symfony/yaml: 2.8|^3.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^5.5
- squizlabs/php_codesniffer: ^2.8
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.22
- 2.2.21
- 2.2.20
- 2.2.19
- 2.2.18
- 2.2.17
- 2.2.16
- 2.2.15
- 2.2.14
- 2.2.13
- 2.2.12
- 2.2.11
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.0.x-dev
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-feature/93-project-x-network-proxy
This package is auto-updated.
Last update: 2024-11-20 05:31:42 UTC
README
Project-X aims to cut down the time it takes for developers to setup a local development instance. It does this by automating most of the of the setup tasks, which can be executed via the CLI.
Project-X is architected with a plugable concept from the ground up. This will allow developers to mold the build tool to fit the project requirements. The core of project-x is built on top of Robo, which is modern task runner for PHP. Which allows for great flexibility and customization that we're able to leverage without having to reinvent the wheel.
Project Types
We're only supporting Drupal project types at the moment. We have plans on supporting other popular PHP based projects, such as Laravel, Symfony and Wordpress. Among those you can create your own project type using the plugable nature of the application architecture.
Environment Engines
Docker is the environment engine of choice. There are plans to expand this support, but we're waiting to see where devopts is moving this year. Environment engines are plugable and can be expanded to meet the project's particular needs.
Features
- Docker services support, allowing to swap out different services without writing a single line of code.
- Supports development built processes and deployment into a GitHub repo.
- Setup CI services, Probo CI and Travis CI in a flash.
- Integration with GitHub for improved developer workflow.
- Incorporate environment engines, and the idea of infrastructure configurations living along side the project.
- Setup projects based on pre-configured templates that are customizable.
- Setup testing tools like
behat
andphp-unit
with ease. - Ensure that developers are following coding standards with code sniffer.
- Execute project specific commands before, or after a core command has ran.
Project-X tries to have a minimalistic approach on how the project is setup. The main goal is to keep the project configuration bloat to a minimum. If you don't need a particular feature don't add it until you truly need it, as all features can be added later on in the project.
Getting Started
mkdir my-project && cd my-project
composer init
composer require --dev droath/project-x
./vendor/bin/project-x init
./vendor/bin/project-x project:setup
Configurations
Command Hooks
All Project-X commands have support for project specific commands to be ran before or after a core command has been executed.
Add the following to your project-x.yml within the project root.
command_hooks: project: up: after: - echo 'Project is up!' before: - echo 'Project is starting up!' down: after: - echo 'Project is down!' - echo 'Do something else' before: - echo 'Project is going down!' - { type: symfony, command: 'deploy:push' }
There is support to call project-x commands within the command hooks. Which is done by defining an object. The full syntax is the following:
before: - { type: symfony, command: 'COMMAND_NAME', arguments: {'key': 'value'}, options: ['option'] }
Bash alias
If you would like to avoid typing ./vendor/bin/project-x
every time you use project-x
, you may add the following to your bash_profile
:
function project-x() { if [ "`git rev-parse --show-cdup 2> /dev/null`" != "" ]; then GIT_ROOT=$(git rev-parse --show-cdup) else GIT_ROOT="." fi if [ -f "$GIT_ROOT/vendor/bin/project-x" ]; then $GIT_ROOT/vendor/bin/project-x "$@" elif [ -f "$GIT_ROOT/../vendor/bin/project-x" ]; then $GIT_ROOT/../vendor/bin/project-x "$@" else echo "You must run this command from within a Project-X project." return 1 fi }