{"id":26378108,"url":"https://github.com/devamiri-iran/devamirix","last_synced_at":"2026-02-15T08:33:58.218Z","repository":{"id":277360852,"uuid":"932225794","full_name":"DevAmiri-iran/DevAmirix","owner":"DevAmiri-iran","description":"DevAmirix is a modern PHP framework that simplifies web application development. It offers a robust, modular architecture and a comprehensive set of tools to build dynamic, secure, and scalable web applications with ease.","archived":false,"fork":false,"pushed_at":"2025-02-13T15:49:15.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T10:17:04.027Z","etag":null,"topics":["framework","mvc","php","php8"],"latest_commit_sha":null,"homepage":"https://devamiri.ir/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevAmiri-iran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-13T15:19:03.000Z","updated_at":"2025-02-28T12:19:02.000Z","dependencies_parsed_at":"2025-02-14T13:31:11.272Z","dependency_job_id":null,"html_url":"https://github.com/DevAmiri-iran/DevAmirix","commit_stats":null,"previous_names":["devamiri-iran/devamirix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAmiri-iran%2FDevAmirix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAmiri-iran%2FDevAmirix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAmiri-iran%2FDevAmirix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevAmiri-iran%2FDevAmirix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevAmiri-iran","download_url":"https://codeload.github.com/DevAmiri-iran/DevAmirix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971180,"owners_count":20376784,"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","mvc","php","php8"],"created_at":"2025-03-17T04:21:13.129Z","updated_at":"2026-02-15T08:33:58.177Z","avatar_url":"https://github.com/DevAmiri-iran.png","language":"PHP","readme":"# DevAmirix\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/DevAmiri-iran/DevAmirix/blob/main/public/logo.png?raw=true\" alt=\"Logo\" width=\"300\"\u003e\n\u003c/p\u003e\n**DevAmirix** is a modern PHP framework that simplifies web application development. It offers a robust, modular architecture and a comprehensive set of tools to build dynamic, secure, and scalable web applications with ease.\n\n---\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Features](#features)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n    - [Routing](#routing)\n    - [Database \u0026 Migrations](#database--migrations)\n    - [Templating](#templating)\n    - [Middleware](#middleware)\n    - [API Management](#api-management)\n    - [Artisan Commands](#artisan-commands)\n- [Dependencies](#dependencies)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n---\n\n## Introduction\n\n**DevAmirix** is designed to streamline the development process by providing you with an elegant routing system, a powerful Blade-based templating engine with caching and minification, database migrations, built-in API management (with JWT and CSRF protection), and a CLI tool for common tasks. Whether you’re building a small project or a large-scale application, DevAmirix has you covered.\n\n---\n\n## Features\n\n- **Elegant Routing:** Define routes for GET, POST, PUT, PATCH, DELETE, etc., with support for middleware and route groups.\n- **Blade Templating Engine:** Enjoy a robust templating system with view caching and automatic HTML, CSS, and JS minification.\n- **Database Migrations \u0026 Factories:** Simplify database schema management with migrations and generate dummy data using factories.\n- **API Management:** Secure and validate API requests with built-in tools including JWT authentication and CSRF protection.\n- **Artisan CLI:** Run migrations, execute factories, and perform other tasks using the integrated command-line interface.\n- **Security:** Robust encryption and JWT-based authentication ensure your data stays secure.\n- **Email Integration:** Send emails effortlessly using SMTP, sendmail, or a logging driver.\n- **Centralized Configuration \u0026 Session Management:** Easily manage environment settings and sessions using dedicated configuration files.\n- **Performance Enhancements:** Built-in caching and asset minification boost your application’s performance.\n\n---\n\n## Installation\n\n### Requirements\n\n- PHP 8.0 or higher\n- [Composer](https://getcomposer.org/)\n- MySQL (or any other supported database)\n\n### Steps\n\n1. **Clone the Repository:**\n\n   ```bash\n   git clone https://github.com/DevAmiri-iran/DevAmirix.git\n   cd DevAmirix\n   ```\n   OR\n    ```bash\n    composer create-project devamiri/devamirix\n    cd devamirix\n    ```\n\n2. **Install Dependencies via Composer:**\n\n   ```bash\n   composer install\n   ```\n\n3. **Create Environment File:**\n\n   Copy the provided `.env.example` to `.env` and update your environment variables accordingly:\n\n   ```bash\n   cp .env.example .env\n   ```\n\n4. **(Optional) Set Up the Database:**\n\n   If you plan to use database features, ensure that you configure your database credentials in the `.env` file and uncomment the database initialization in `app/bootstrap.php`.\n\n---\n\n## Configuration\n\nAll configuration files reside in the `app/config` directory. Adjust these files as needed, or use the dot notation helper functions to access and update settings dynamically.\n\n---\n\n## Usage\n\n### Routing\n\nDefine routes effortlessly using the Route class. For example:\n\n```php\n// Render a view\nRoute::view('/', 'home');\n\n// API endpoint\nRoute::api('/login', 'loginHandler');\n\n// Closure-based route\nRoute::get('/welcome', function () {\n    return 'Welcome to DevAmirix!';\n});\n```\n\n### Database \u0026 Migrations\n\nActivate database functionality in your bootstrap file:\n\n```php\nSystem::useDatabase();\n```\n\nCreate migrations in the `app/database/migrations` directory. Example:\n\n```php\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nreturn new class {\n    public string $table = 'users';\n\n    public function up(): void {\n        Capsule::Schema()-\u003ecreate($this-\u003etable, function (Blueprint $table) {\n            $table-\u003eid();\n            $table-\u003estring('username', 50);\n            $table-\u003estring('password', 50);\n            $table-\u003estring('email', 100);\n            $table-\u003estring('phone_number', 20)-\u003enullable();\n            $table-\u003etimestamps();\n        });\n    }\n\n    public function down(): void {\n        Capsule::Schema()-\u003edropIfExists($this-\u003etable);\n    }\n};\n```\n\n### Templating\n\nRender views using the Blade templating engine:\n\n```php\nView::render('welcome', ['name' =\u003e 'DevAmirix']);\n```\n\n### Middleware\n\nCreate custom middleware in the `app/Middleware` directory:\n\n```php\nnamespace App\\Middleware;\n\nclass Auth {\n    public function handle(array $params): void {\n        if (!cookie()-\u003ehas('user')) {\n            redirect(url('login'));\n        }\n    }\n}\n```\n\nAttach middleware to your routes as follows:\n\n```php\nRoute::middleware(Auth::class)-\u003eget('/dashboard', 'dashboardHandler');\n```\n\n### API Management\n\nManage and secure API requests using the built-in APIManager:\n\n```php\nuse App\\Support\\APIManager;\n\n$API = new APIManager(true, true);\n$API-\u003evalidateParameters('password');\n\n$API-\u003ehandle(function ($request) {\n    if ($request['password'] === '123') {\n        APIManager::respond(true, 'Your password is correct');\n    } else {\n        APIManager::respond(false, 'Your password is not correct');\n    }\n});\n```\n\n### Artisan Commands\n\nDevAmirix includes a built-in CLI tool to assist with routine tasks:\n\n```bash\n# Run all migrations\nphp artisan migrate *\n\n# Run a specific factory (e.g., UserFactory)\nphp artisan factory UserFactory\n```\n\n---\n\n## Dependencies\n\n- **PHP:** 8.0+\n- **Composer:** [getcomposer.org](https://getcomposer.org/)\n- **Database:** MySQL (or other supported systems)\n- **SwiftMailer:** [swiftmailer.symfony.com](https://swiftmailer.symfony.com/)\n- **BladeOne:** [GitHub - eftec/BladeOne](https://github.com/eftec/BladeOne)\n- **Illuminate Database:** Refer to [Laravel's Database Documentation](https://laravel.com/docs/master/database)\n\n---\n\n## Contributing\n\nContributions are welcome! Please review our [contributing guidelines](https://github.com/DevAmiri-iran/DevAmirix/blob/main/CONTRIBUTING.md) before submitting pull requests. Your help in improving DevAmirix is greatly appreciated.\n\n---\n\n## License\n\nDevAmirix is open-sourced software licensed under the [MIT License](LICENSE).\n\n---\n\n## Contact\n\nFor more information, please visit our website at [devamiri.ir](https://devamiri.ir) or connect with us on [GitHub](https://github.com/DevAmiri-iran).\n\n---\n\nHappy coding with **DevAmirix**!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevamiri-iran%2Fdevamirix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevamiri-iran%2Fdevamirix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevamiri-iran%2Fdevamirix/lists"}