steodec / project
This package is abandoned and no longer maintained.
The author suggests using the humbrain/php-project package instead.
Micro Framework php for web App
2.1
2022-07-01 07:51 UTC
Requires
- ext-dom: *
- ext-pdo: *
- salernolabs/php-to-xml: ^1.0
- steodec/cli: 0.0.1
- steodec/controllers: 1.0.1
- steodec/orm: 1.1.4
- steodec/router: 2.0
- vlucas/phpdotenv: ^5.4
This package is auto-updated.
Last update: 2023-03-01 11:24:18 UTC
README
Micro framework with ORM, Router
Micro framework develop by Steodec for php8.1 with custom ORM and custom Router Annotation
📕 Contents
⚒️ Requirements
- PHP >=8.1
- ext-dom: *
- ext-pdo: *
🏗️ Installation
composer create-project steodec/project project_name
🎈 Usage
Controllers
namespace Steodec\Controllers; use Steodec\Project\controllers\AbstractControllers; use Steodec\Router class Home extends AbstractControllers { #[Routes(method:'GET', path: "/", name: 'HOME_PAGE', isGranted: 'SHOW_HOMEPAGE')] public function index() { echo "Hello World"; } }
Entity
namespace Steodec\Entities; use Steodec\Project\entities\AbstractEntity; class Users extends AbstractEntity { const TABLE_NAME = "users"; public string $username; public string $email; public string $password; public function __construct() { parent::__construct($this); } }
🍪 Author
I'm Steodec. A passionate, zen & dedicated software engineer 😊
You can keep in touch with me at: paul.tedesco@humbrain.com 📮
📃 License
Steodec Project is distributed under MIT license 🚀 Enjoy! ❤️