├── LICENSE ├── README.md ├── autoload.php ├── composer.json ├── preload.php └── src └── Aplus.php /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Natan Felles 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Aplus Framework 2 | 3 | # Aplus Framework 4 | 5 | - [Home](https://aplus-framework.com/packages/framework) 6 | - [User Guide](https://docs.aplus-framework.com/guides/framework/index.html) 7 | - [API Documentation](https://docs.aplus-framework.com/packages/framework.html) 8 | 9 | [![tests](https://github.com/aplus-framework/framework/actions/workflows/tests.yml/badge.svg)](https://github.com/aplus-framework/framework/actions/workflows/tests.yml) 10 | [![coverage](https://coveralls.io/repos/github/aplus-framework/framework/badge.svg?branch=master)](https://coveralls.io/github/aplus-framework/framework?branch=master) 11 | [![packagist](https://img.shields.io/packagist/v/aplus/framework)](https://packagist.org/packages/aplus/framework) 12 | [![open-source](https://img.shields.io/badge/open--source-sponsor-magenta)](https://aplus-framework.com/sponsor) 13 | -------------------------------------------------------------------------------- /autoload.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | require __DIR__ . '/../autoload/src/Autoloader.php'; 11 | 12 | use Framework\Autoload\Autoloader; 13 | 14 | $aplusDir = dirname(__DIR__) . \DIRECTORY_SEPARATOR; 15 | 16 | return (new Autoloader())->setClasses([ 17 | 'Aplus' => __DIR__ . '/src/Aplus.php', 18 | ])->setNamespaces([ 19 | 'Framework\Autoload' => $aplusDir . 'autoload/src', 20 | 'Framework\Cache' => $aplusDir . 'cache/src', 21 | 'Framework\CLI' => $aplusDir . 'cli/src', 22 | 'Framework\CLI\Commands' => $aplusDir . 'dev-commands/src', 23 | 'Framework\Config' => $aplusDir . 'config/src', 24 | 'Framework\Crypto' => $aplusDir . 'crypto/src', 25 | 'Framework\Database' => $aplusDir . 'database/src', 26 | 'Framework\Database\Extra' => $aplusDir . 'database-extra/src', 27 | 'Framework\Date' => $aplusDir . 'date/src', 28 | 'Framework\Debug' => $aplusDir . 'debug/src', 29 | 'Framework\Email' => $aplusDir . 'email/src', 30 | 'Framework\Events' => $aplusDir . 'events/src', 31 | 'Framework\Factories' => $aplusDir . 'factories/src', 32 | 'Framework\Helpers' => $aplusDir . 'helpers/src', 33 | 'Framework\HTTP' => $aplusDir . 'http/src', 34 | 'Framework\HTTP\Client' => $aplusDir . 'http-client/src', 35 | 'Framework\Image' => $aplusDir . 'image/src', 36 | 'Framework\Language' => $aplusDir . 'language/src', 37 | 'Framework\Log' => $aplusDir . 'log/src', 38 | 'Framework\MVC' => $aplusDir . 'mvc/src', 39 | 'Framework\Pagination' => $aplusDir . 'pagination/src', 40 | 'Framework\Routing' => $aplusDir . 'routing/src', 41 | 'Framework\Session' => $aplusDir . 'session/src', 42 | 'Framework\Validation' => $aplusDir . 'validation/src', 43 | ]); 44 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aplus/framework", 3 | "description": "Aplus Framework", 4 | "license": "MIT", 5 | "type": "library", 6 | "keywords": [ 7 | "aplus", 8 | "framework" 9 | ], 10 | "authors": [ 11 | { 12 | "name": "Natan Felles", 13 | "email": "natanfelles@gmail.com", 14 | "homepage": "https://natanfelles.github.io" 15 | } 16 | ], 17 | "homepage": "https://aplus-framework.com/packages/framework", 18 | "support": { 19 | "email": "support@aplus-framework.com", 20 | "issues": "https://github.com/aplus-framework/framework/issues", 21 | "forum": "https://aplus-framework.com/forum", 22 | "source": "https://github.com/aplus-framework/framework", 23 | "docs": "https://docs.aplus-framework.com/guides/framework/" 24 | }, 25 | "funding": [ 26 | { 27 | "type": "Aplus Sponsor", 28 | "url": "https://aplus-framework.com/sponsor" 29 | } 30 | ], 31 | "require": { 32 | "php": ">=8.3", 33 | "aplus/autoload": "^3.0.1", 34 | "aplus/cache": "^4.1.0", 35 | "aplus/cli": "^3.0.1", 36 | "aplus/config": "^4.0.1", 37 | "aplus/crypto": "^2.0.1", 38 | "aplus/database": "^4.1.2", 39 | "aplus/database-extra": "^4.0.1", 40 | "aplus/date": "^3.0.1", 41 | "aplus/debug": "^4.1.2", 42 | "aplus/dev-commands": "^2.0.2", 43 | "aplus/email": "^4.0.1", 44 | "aplus/events": "^2.0.0", 45 | "aplus/factories": "^2.0.1", 46 | "aplus/helpers": "^4.0.1", 47 | "aplus/http": "^6.2.0", 48 | "aplus/http-client": "^5.0.1", 49 | "aplus/image": "^3.0.1", 50 | "aplus/language": "^4.0.1", 51 | "aplus/log": "^4.1.0", 52 | "aplus/mvc": "^4.1.0", 53 | "aplus/pagination": "^4.0.1", 54 | "aplus/routing": "^4.0.1", 55 | "aplus/session": "^4.0.1", 56 | "aplus/validation": "^3.1.1" 57 | }, 58 | "require-dev": { 59 | "ext-xdebug": "*", 60 | "aplus/coding-standard": "^2.8.0", 61 | "ergebnis/composer-normalize": "^2.44", 62 | "phpmd/phpmd": "^2.15", 63 | "phpstan/phpstan": "^1.12", 64 | "phpunit/phpunit": "^10.5" 65 | }, 66 | "minimum-stability": "dev", 67 | "prefer-stable": true, 68 | "autoload": { 69 | "classmap": [ 70 | "src/Aplus.php" 71 | ] 72 | }, 73 | "autoload-dev": { 74 | "psr-4": { 75 | "Tests\\": "tests" 76 | } 77 | }, 78 | "config": { 79 | "allow-plugins": { 80 | "ergebnis/composer-normalize": true 81 | }, 82 | "optimize-autoloader": true, 83 | "preferred-install": "dist", 84 | "sort-packages": true 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /preload.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | require __DIR__ . '/../autoload/src/Preloader.php'; 11 | 12 | use Framework\Autoload\Preloader; 13 | 14 | $files = (new Preloader())->load(); 15 | echo 'Preloading Aplus Framework: ' . \PHP_EOL; 16 | foreach ($files as $index => $file) { 17 | echo ++$index . ') ' . $file . \PHP_EOL; 18 | } 19 | echo 'Total of ' . count($files) . ' preloaded files.' . \PHP_EOL . \PHP_EOL; 20 | -------------------------------------------------------------------------------- /src/Aplus.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Class Aplus. 12 | * 13 | * @package framework 14 | */ 15 | final class Aplus 16 | { 17 | /** 18 | * The Aplus version. 19 | */ 20 | public const string VERSION = '25.1.0'; 21 | } 22 | --------------------------------------------------------------------------------