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

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

🏗️ 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 📮

steodec

Steodec

📃 License

Steodec Project is distributed under MIT license 🚀 Enjoy! ❤️