readme.md
May 30, 2025 ยท View on GitHub
The AsteriosPHP Framework is a simple and flexible PHP 8.+ framework, inspired from the best features of other frameworks, in a modern and elegant way.
AsteriosPHP Project Site
Table of Contents
Installation
This framework is ready to use it with ddev or with VScode DevContainer.
Repository installtion
$ git clone git@github.com:asteriosframework/core.git
Composer installation
$ composer require asterios/core
Description
AsteriosPHP is a lightweight PHP 8.x framework.
AsteriosPHP is fully PHP 8.1 compatible.
PHP CS Fixer
For code quality wie use the php-cs-fixer tool, with following configuration:
php-cs-fixer
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src');
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
'full_opening_tag' => true,
'single_blank_line_at_eof' => false,
'blank_line_after_opening_tag' => false,
'curly_braces_position' => [
'control_structures_opening_brace' => 'next_line_unless_newline_at_signature_end',
],
'control_structure_continuation_position' => ['position' => 'next_line'],
])->setFinder($finder);
Usage of PHP CS Fixer
$ ./php-cs-fix -h
PHP CS Fixer Tool
Syntax: php-cs-fixer [-h|t|f]
Options:
h Print this help page
t Run in dry-run mode
f Fixes possible issues
$
