• Stars
    star
    576
  • Rank 77,502 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 5 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Aplus Framework App Project

Aplus Framework App Project

Aplus Framework App Project

tests pipeline coverage packagist open-source

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:^22

Enter the project directory.

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

More Repositories

1

database

Aplus Framework Database Library
PHP
326
star
2

framework

Aplus Full-Stack Framework
PHP
264
star
3

mvc

Aplus Framework MVC Library
PHP
260
star
4

aplus

Aplus Command Line Tool
PHP
255
star
5

routing

Aplus Framework Routing Library
PHP
242
star
6

one

Aplus Framework One Project
PHP
240
star
7

email

Aplus Framework Email Library
PHP
238
star
8

validation

Aplus Framework Validation Library
PHP
228
star
9

language

Aplus Framework Language Library
PHP
224
star
10

cli

Aplus Framework CLI Library
PHP
222
star
11

image

Aplus Framework Image Library
PHP
216
star
12

http-client

Aplus Framework HTTP Client Library
PHP
210
star
13

session

Aplus Framework Session Library
PHP
207
star
14

pagination

Aplus Framework Pagination Library
PHP
203
star
15

crypto

Aplus Framework Crypto Library
PHP
16
star
16

autoload

Aplus Framework Autoload Library
PHP
16
star
17

config

Aplus Framework Config Library
PHP
15
star
18

cache

Aplus Framework Cache Library
PHP
15
star
19

log

Aplus Framework Log Library
PHP
12
star
20

debug

Aplus Framework Debug Library
PHP
5
star
21

helpers

Aplus Framework Helpers Library
PHP
5
star
22

minify

Aplus Framework Minify Library
PHP
4
star
23

.github

3
star
24

date

Aplus Framework Date Library
PHP
3
star
25

template

Aplus Framework Template Project
PHP
2
star
26

front

Aplus Framework Front Library
PHP
2
star
27

database-extra

Aplus Framework Database Extra Library
PHP
2
star
28

theme

Aplus Framework Theme Library
PHP
2
star
29

dev-commands

Aplus Framework Dev Commands Library
PHP
2
star
30

events

Aplus Framework Events Library
PHP
2
star
31

factories

Aplus Framework Factories Library
PHP
2
star
32

testing

Aplus Framework Testing Library
PHP
2
star
33

coding-standard

Aplus Framework Coding Standard Library
PHP
2
star