codesaur/indoraptor

Цэвэр архитектуртай объект хандалттай веб хөгжүүлэлтийн фреймворк

Installs: 434

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/codesaur/indoraptor

This package is auto-updated.

Last update: 2026-02-15 16:41:45 UTC


README

PHP Version License

Цэвэр архитектуртай объект хандалттай веб хөгжүүлэлтийн фреймворк
Clean architecture object-oriented web development framework

Агуулга / Table of Contents

  1. Монгол | 2. English | 3. Getting Started

1. Монгол тайлбар

codesaur/indoraptor нь PSR стандартууд (PSR-3, PSR-7, PSR-15) дээр суурилсан, олон давхаргат архитектуртай, бүрэн CMS боломжтой PHP веб фреймворк юм.

Фреймворк нь Web (нийтийн сайт) болон Dashboard (админ панель) гэсэн хоёр давхаргад хуваагдан ажилладаг бөгөөд codesaur экосистемийн бусад packages-тэй хамтран ажиллана.

Гол боломжууд

  • ✔ PSR-7/PSR-15 middleware суурьтай архитектур
  • ✔ JWT + Session нэвтрэлт баталгаажуулалт
  • ✔ RBAC (Role-Based Access Control) эрхийн удирдлага
  • ✔ Олон хэл дэмжлэг (Localization)
  • ✔ CMS модулиуд: Мэдээ, Хуудас, Файл, Лавлах, Тохиргоо
  • ✔ MySQL / PostgreSQL / SQLite дэмжлэг
  • ✔ Twig template engine
  • ✔ OpenAI интеграци (moedit editor)
  • ✔ Зураг optimize хийх (GD)
  • ✔ PSR-3 лог систем

Дэлгэрэнгүй мэдээлэл

2. English Description

codesaur/indoraptor is a multi-layered, full-featured CMS PHP web framework built on PSR standards (PSR-3, PSR-7, PSR-15).

The framework operates in two layers - Web (public website) and Dashboard (admin panel) - and works together with other packages in the codesaur ecosystem.

Key Features

  • ✔ PSR-7/PSR-15 middleware-based architecture
  • ✔ JWT + Session authentication
  • ✔ RBAC (Role-Based Access Control)
  • ✔ Multi-language support (Localization)
  • ✔ CMS modules: News, Pages, Files, References, Settings
  • ✔ MySQL / PostgreSQL / SQLite support
  • ✔ Twig template engine
  • ✔ OpenAI integration (moedit editor)
  • ✔ Image optimization (GD)
  • ✔ PSR-3 logging system

Documentation

3. Getting Started

Requirements

  • PHP 8.2.1+
  • Composer
  • MySQL / PostgreSQL / SQLite
  • PHP extensions: ext-gd, ext-intl

Installation

composer create-project codesaur/indoraptor my-project

Configuration

composer create-project ашигласан бол .env файл автоматаар үүсэх бөгөөд INDO_JWT_SECRET мөн автоматаар generate хийгдэнэ. Хэрэв .env үүсээгүй бол гараар хуулна:

If you used composer create-project, the .env file is auto-created and INDO_JWT_SECRET is auto-generated. If .env was not created, copy it manually:

cp .env.example .env

Server configuration examples / Серверийн тохиргооны жишээ: docs/conf.example/

Гол тохиргоонууд / Key configuration:

# Environment (development / production)
CODESAUR_APP_ENV=development

# Database
INDO_DB_HOST=localhost
INDO_DB_NAME=indoraptor
INDO_DB_USERNAME=root
INDO_DB_PASSWORD=

# JWT (secret is auto-generated)
INDO_JWT_ALGORITHM=HS256
INDO_JWT_LIFETIME=2592000

Quick Architecture

public_html/index.php
 ├── /dashboard/* → Dashboard\Application (Admin Panel)
 │    ├── Middleware stack (Session, JWT, RBAC, Localization, Settings)
 │    ├── Routers (Login, Users, Organization, RBAC, Content, Logs)
 │    └── Controllers → Twig Templates
 │
 └── /* → Web\Application (Public Website)
      ├── Middleware stack (Session, Localization, Settings)
      ├── HomeRouter (/, /page/{id}, /news/{id}, /contact, /language/{code})
      └── TemplateController → Twig Templates

Request Flow: index.php → Application → Middleware chain → Router match → Controller → Response

Directory Structure

indoraptor/
├── application/
│   ├── raptor/              # Core framework (Controllers, Models, Middleware)
│   │   ├── authentication/  # Login, JWT, Session
│   │   ├── content/         # CMS (files, news, pages, references, settings)
│   │   ├── localization/    # Languages & translations
│   │   ├── organization/    # Organization management
│   │   ├── rbac/            # Roles & permissions
│   │   ├── user/            # User management
│   │   ├── template/        # Dashboard UI
│   │   ├── log/             # Logging
│   │   └── mail/            # Email
│   ├── dashboard/           # Dashboard application
│   └── web/                 # Public website application
├── public_html/             # Document root
│   ├── index.php            # Entry point
│   ├── .htaccess            # Apache URL rewrite
│   └── assets/              # CSS, JS (dashboard, moedit, motable)
├── docs/
│   ├── conf.example/        # Server configuration examples
│   ├── en/                  # English documentation
│   └── mn/                  # Mongolian documentation
├── logs/                    # Error logs
├── private/                 # Protected files
├── composer.json            # Dependencies
└── LICENSE                  # MIT License

Did You Know?

Velociraptor (/vɪˈlɒsɪræptər/ - Латинаар "swift seizer" буюу "хурдан баригч") нь Cretaceous галавын сүүл үе буюу ойролцоогоор 75-71 сая жилийн өмнө амьдарч байсан dromaeosaurid theropod үлэг гүрвэлийн төрөл юм. Одоогоор хоёр зүйлийг хүлээн зөвшөөрсөн бөгөөд V. mongoliensis энэ зүйлийн олдворуудыг Монгол улсаас олсон байдаг. Хоёр дахь зүйл V. osmolskae-г 2008 онд Өвөр Монголоос олдсон гавлын материалаар нэрлэсэн.

Indoraptor нь "Jurassic World: Fallen Kingdom" киноны гол антагонист болсон шинэ эрлийз динозавр юм. Бидний фреймворкийн нэр яг эндээс үүдэлтэй!

Acknowledgements

Энэ фреймворкийг хөгжүүлэхэд Gerege Systems LLC ивээн тэтгэж, компанийн үүсгэн байгуулагч Ц.Эрдэнэбат багш удирдан зааварлаж чиглүүлсэн билээ.

This framework was developed with the sponsorship of Gerege Systems LLC and under the guidance of Erdenebat Ts, founder of Gerege Systems.

Changelog

Community

  • 💬 Discussions - Ask questions, share ideas, get help

Contributing & Security

License

This project is licensed under the MIT License.

Author

Narankhuu 📧 codesaur@gmail.com
📱 +976 99000287
🌐 https://github.com/codesaur

🦖 codesaur ecosystem: https://codesaur.net