aplus / app
Aplus Framework App Project
Fund package maintenance!
Aplus Sponsor
Installs: 1 265 969
Dependents: 1
Suggesters: 0
Security: 0
Stars: 576
Watchers: 6
Forks: 22
Open Issues: 1
Type:project
Requires
- php: >=8.3
- aplus/framework: ^25.1
Requires (Dev)
- ext-xdebug: *
- aplus/coding-standard: ^2.8
- aplus/testing: ^3.0
- ergebnis/composer-normalize: ^2.44
- jetbrains/phpstorm-attributes: ^1.1
- natanfelles/php-server: ^2.11
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^1.12
- dev-master
- v25.1.0
- v25.0.0
- 24.x-dev
- v24.0.0
- v23.5.2
- v23.5.1
- v23.5.0
- v23.4.0
- v23.3.2
- v23.3.1
- v23.3.0
- v23.2.1
- v23.2.0
- v23.1.0
- v23.0.3
- v23.0.2
- v23.0.1
- v23.0.0
- 22.x-dev
- v22.2.1
- v22.2.0
- v22.1.0
- v22.0.7
- v22.0.6
- v22.0.5
- v22.0.4
- v22.0.3
- v22.0.2
- v22.0.1
- v22.0.0
- v3.0.1
- v3.0.0
- v2.0.1
- v2.0.0
- v2.0.0-alpha.2
- v2.0.0-alpha.1
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-development
This package is auto-updated.
Last update: 2024-10-29 22:37:34 UTC
README
Aplus Framework App Project
Getting Started
Make sure you have Composer installed.
Follow the installation instructions in the User Guide.
To install the latest version:
composer create-project aplus/app
Or, to install the latest LTS version:
composer create-project aplus/app:^24
Enter the project directory.
Optionally, you can start a new project on GitHub from this template.
Licensing
Add a LICENSE
file.
If you think about open-source your project, choose a license.
If your project is proprietary, you can add your custom license or not.
Edit the .php-cs-fixer.dist.php
file.
Set the project name and copyright information.
To update the comment header in all PHP files, run:
vendor/bin/php-cs-fixer fix -vvv
Code Quality
Aplus Framework uses Code Quality Tools in all its projects.
By default, App Project also uses the following tools as dev-dependencies:
Static Analysis
You can find bugs in your code without writing tests by running:
vendor/bin/phpstan analyse
See the phpstan.neon.dist
file for more details.
Mess Detector
You can look for several potential problems in the source code by running:
vendor/bin/phpmd app xml phpmd.xml
Customize your rules in the phpmd.xml
file.
Coding Standard
We extend PHP-CS-Fixer to create the Coding Standard Library.
It is PSR-12 compatible.
You can see what to fix in the source code by running:
vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
Testing
We extend PHPUnit to create the Testing Library.
You can unit test your code by running:
vendor/bin/phpunit
See the phpunit.xml.dist
file for more details.
Documenting
Good software usually has good documentation.
You can build beautiful HTML pages about your project's documentation.
You must have phpDocumentor installed on your computer or run phpdoc
inside a container.
Development Environment
The App Project is delivered with a dev-dependency to easily configure the built-in PHP development server.
Just run
vendor/bin/php-server
and your project will be available at http://localhost:8080.
See the php-server.ini
file for more details.
Containers
Aplus has Docker images for testing and building software.
You can run it in CI or local environments.
With Docker installed on your computer, you can run:
docker-compose run --service-ports lempa
This will log you as the developer user into a Docker container where you can run all your tests.
By default, the web app will be available at http://localhost, on ports 80 and 443.
See the docker-compose.yml
file for more details.
Continuous Integration
App Project is cross-platform and can be used in public and private projects.
You can use it on GitLab, on GitHub, on your computer, anywhere you want.
The App Project is already pre-configured to run in a GitLab CI environment.
See the .gitlab-ci.yml
file for more details.
Just upload your project to GitLab and it will run pipelines.
On GitHub, it will run workflows to test your code every Push or Pull Request.
Check the .github
folder to see more.
And now?
Go build an API or a website, an awesome app! ⚡
See you.
If you have a little time...
Visit the Aplus Framework website: aplus-framework.com
Follow Aplus on:
Stay tuned for our updates.
Share your experiences about meet us!
Remember:
Coding is Art.
Coding is Engineering.
Good developer loves to code.
Code with Love!
The Aplus Framework Team