{"id":21871068,"url":"https://github.com/isaka-james/thyrus","last_synced_at":"2025-03-21T22:23:46.165Z","repository":{"id":251524089,"uuid":"837651789","full_name":"isaka-james/thyrus","owner":"isaka-james","description":"A lightweight PHP framework designed for effortless hosting and minimal configuration. ","archived":false,"fork":false,"pushed_at":"2024-09-10T08:55:00.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T16:47:23.193Z","etag":null,"topics":["framework","lightweight-framework","php","php-framework","phpframework","thyrus","thyrus-framework","thyrus-php","thyrus-php-framework"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isaka-james.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-03T15:53:38.000Z","updated_at":"2024-09-10T08:55:04.000Z","dependencies_parsed_at":"2024-11-28T07:15:10.312Z","dependency_job_id":null,"html_url":"https://github.com/isaka-james/thyrus","commit_stats":null,"previous_names":["isaka-james/thyrus"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fthyrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fthyrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fthyrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaka-james%2Fthyrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaka-james","download_url":"https://codeload.github.com/isaka-james/thyrus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244876438,"owners_count":20524852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework","lightweight-framework","php","php-framework","phpframework","thyrus","thyrus-framework","thyrus-php","thyrus-php-framework"],"created_at":"2024-11-28T06:13:19.084Z","updated_at":"2025-03-21T22:23:46.143Z","avatar_url":"https://github.com/isaka-james.png","language":"PHP","readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003e Thyrus Framework \u003c/h1\u003e\n\n\u003ca href=\"https://github.com/isaka-james/thyrus\"\u003e\n    \u003cimg title=\"Version\" src=\"https://img.shields.io/badge/Version-0.1.0-yellow?style=for-the-badge\u0026logo=\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/isaka-james/thyrus/blob/main/LICENSE\"\u003e\n    \u003cimg title=\"License\" src=\"https://img.shields.io/badge/License-MIT-brightgreen?style=for-the-badge\u0026logo=mit\"\u003e\n\u003c/a\u003e\n\n\u003cimg title=\"Report\" src=\"https://img.shields.io/badge/Copyright-2024-red?style=for-the-badge\u0026logo=github\"\u003e\n\n\u003ca href=\"https://github.com/isaka-james/thrus\"\u003e\n    \u003cimg title=\"Author\" src=\"https://img.shields.io/badge/GITHUB-THYRUS-blue?style=for-the-badge\u0026logo=github\"\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n## Overview\n\n\u003cp\u003e\n  \u003cimg src=\"https://komarev.com/ghpvc/?username=isaka-thyrus\u0026label=Thyrus%20Framework\u0026color=0e75b6\u0026style=flat\" alt=\"since 04 Sep,2024\" /\u003e\n\u003c/p\u003e\n\nThyrus is a lightweight PHP framework designed for ease of use and simplicity in deployment. It supports MVC (Model-View-Controller) architecture and is optimized for environments where you may only have limited directory access, such as free hosting platforms.\n\n**Predecessor:** *MasterPHP (which lacked MVC architecture)*\n\n## Features\n\n- **Easy Hosting:** Designed to run on any PHP server without the need for complex configurations.\n- **MVC Architecture:** Supports a clear separation of concerns with Model, View, and Controller.\n- **Assets Management:** Includes an `assets` directory for managing static assets like CSS and images.\n- **Zero Configuration:** Suitable for environments where only a partial directory is accessible.\n\n## Directory Structure\n\nThe framework’s file structure is as follows:\n\n```bash\n├── assets\n│   └── astra.css\n├── astra\n│   └── helpers\n│       └── helpers.php\n├── composer.json\n├── composer.lock\n├── config\n│   └── database.php\n├── index.php\n├── routes\n│   └── web.php\n├── src\n│   ├── Config\n│   │   └── CORS.php\n│   ├── Controllers\n│   │   ├── Controller.php\n│   │   └── TestController.php\n│   ├── Database\n│   │   └── DatabaseManager.php\n│   ├── Models\n│   │   └── BaseModel.php\n│   └── Views\n│       └── index.twig\n└── vendor\n    ├── autoload.php\n    ├── composer\n    │   ├── ClassLoader.php\n    ......\n```\n\n## Installation\n\n1. **Download or Clone:**\n\n   ```\n   git clone https://github.com/isaka-james/thyrus.git\n   ```\n\n2. **Navigate to the Project Directory:**\n\n   ```\n   cd thyrus\n   ```\n\n3. **Install Dependencies:**\n\n   Ensure you have [Composer](https://getcomposer.org/) installed. Run:\n\n   ```\n   composer install\n   ```\n\n## Configuration\n\n1. **Database Configuration:**\n\n   Edit the `config/database.php` file to set up your database connection.\n\n2. **Routing:**\n\n   Define your routes in the `routes/web.php` file.\n\n## Usage\n\n1. **Create a Controller:**\n\n   Extend the base controller class located at `src/Controllers/Controller.php`.\n\n   ```php\n   namespace App\\Controllers;\n\n   use App\\Controller;\n\n   class MyController extends Controller\n   {\n       public function index()\n       {\n           return $this-\u003erender('index.twig', ['data' =\u003e 'Hello World']);\n       }\n   }\n   ```\n\n2. **Create a Model:**\n\n   Extend the base model class located at `src/Models/BaseModel.php`.\n\n   ```php\n   namespace App\\Models;\n\n   use App\\Model;\n\n   class MyModel extends BaseModel\n   {\n       // Model methods\n   }\n   ```\n\n3. **Create a View:**\n\n   Place your Twig templates in the `src/Views` directory.\n\n   ```twig\n   {# src/Views/index.twig #}\n   \u003chtml\u003e\n   \u003cbody\u003e\n       \u003ch1\u003e{{ data }}\u003c/h1\u003e\n   \u003c/body\u003e\n   \u003c/html\u003e\n   ```\n\n## License\n\nThyrus is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n  \u003cp\u003e\n    \u003cimg src=\"https://komarev.com/ghpvc/?username=thyrus\u0026label=Visitors\u0026color=0e75b6\u0026style=flat\" alt=\"since 3 August,2024\" /\u003e\n  \u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaka-james%2Fthyrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaka-james%2Fthyrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaka-james%2Fthyrus/lists"}