PHPackages                             rganin/magelight - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. rganin/magelight

ActiveLibrary[Framework](/categories/framework)

rganin/magelight
================

A robust MVC framework for PHP application development.

1.0(9y ago)025OSL 3.0PHPPHP &gt;=7

Since Apr 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rganin/magelight)[ Packagist](https://packagist.org/packages/rganin/magelight)[ RSS](/packages/rganin-magelight/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Magelight
=========

[](#magelight)

Magelight is a lightweight MVC framework inspired by [Magento](http://magentocommerce.com) written ground-up for PHP 7

[![Build status](https://camo.githubusercontent.com/81080b3b79f6171e95370aaba214737c1dcb20d26608daa1195391fd3aca2d10/68747470733a2f2f7472617669732d63692e6f72672f7267616e696e2f6d6167656c696768742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rganin/magelight)

License
-------

[](#license)

Magelight is distributed under [Open Software License 3.0](http://opensource.org/licenses/osl-3.0.php) (OSL 3.0).

Framework features
------------------

[](#framework-features)

- MVC architecture with module-based customization mechanisms
- Query builder and Active-Record models
- Extensible controllers
- Extensible views with redefinable templates
- Native PHP syntax templating
- IOC support within object forgery
- PHPUnit-based essentials for unit testing regardless static calls
- Robust module-based customizations:
    - Class redefinition and preferences that allow to extend class behavior through all application
    - Document layout redefinition
    - Blocks template redefinition
    - Runtime method hooks (before, after) that allow to modify method arguments or result
    - XML-based configuration that can be overriden in modules
    - XML-based routing that can be overriden in modules same as config
    - Customizable L10N and I18N support

Distributed Modules
-------------------

[](#distributed-modules)

#### Admin:

[](#admin)

- Application backend framework with simple customizable scaffolding
- Admin user management and access control

#### Auth:

[](#auth)

- User registration and authorization
- uLogin service support
- Restore password capability

#### Core

[](#core)

- Main module providing following essentials
    - Document - an HTML document object as basic view
    - Pager - widget for paginations
    - Breadcrumbs - content path widget
    - Grid - a basic grid for displaying paginated table data
- Css and Js assets minification and merging mechanisms

#### Geo

[](#geo)

- City, Region and Country structured data and models
- Internationalized in EN, RU and UA languages

#### Image

[](#image)

- Image model implementing miscellaneous image transformations

#### Sitemap

[](#sitemap)

- Self-crawling sitemap builder

#### Visitors

[](#visitors)

- Visitors actions logging

#### Webform

[](#webform)

- Forms with bootstrap-based layout that can be either built with form constructor or templated in an individual template.
- Elements and fields with fully-controllable attributes and content
- Asyncronous csubmit capability, frontend and backend validation
- Customizable validator and rules
- Localizable validation errors
- Generic fields available:
    - Captcha - a simple captcha for registration form or other
    - Checkbox - a checkbox form element
    - File - a single generic file input
    - FilePretty - prettified file input
    - Input - generic input
    - InputAppended - an input with an addon
    - InputHidden - hidden input
    - InputMasked - input with configurable mask for email/phone/credit-card data input
    - InputPrepended - input with addon in the beginning
    - LabeledCheckbox - a checkbox with label
    - LabeledRadio - a radio input with label
    - PasswordInput - a generic input for password
    - Radio - generic radio input
    - ReCaptcha - a ReCaptcha captcha input with validation
    - Select - generic select box
    - Textarea - generic textarea
- Support for any custom field with element-based constructor or phtml template

Requirements
------------

[](#requirements)

- PHP 7+

Installation
------------

[](#installation)

- Checkout code with git.
- `include 'core.php'`
- Use Magelight!

Installation with composer
--------------------------

[](#installation-with-composer)

- run `composer require rganin/magelight @dev`
- require `vendor/autoload.php` in your project
- create modules directory in your project or copy sample application structure `vendor/rganin/magelight/app/*`to your project directory
- do not forget to add your own modules directory by `\Magelight::app()->addModulesDir('your_app/modules')` in your project

Contributing
------------

[](#contributing)

Magelight is open to everyone. Feel free to explore, highlight issues and contribute your solutions.

See [contribution guidelines](Contributing.md) for more details.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 99.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3354d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1119622?v=4)[Roman Hanin](/maintainers/rganin)[@rganin](https://github.com/rganin)

---

Top Contributors

[![rganin](https://avatars.githubusercontent.com/u/1119622?v=4)](https://github.com/rganin "rganin (260 commits)")[![rhanin](https://avatars.githubusercontent.com/u/38925137?v=4)](https://github.com/rhanin "rhanin (2 commits)")

---

Tags

lightweight-mvc-frameworkphpphpframeworkmvcmagelight

### Embed Badge

![Health badge](/badges/rganin-magelight/health.svg)

```
[![Health](https://phpackages.com/badges/rganin-magelight/health.svg)](https://phpackages.com/packages/rganin-magelight)
```

###  Alternatives

[mirekmarek/php-jet

PHP Jet is modern, powerful, real-life proven, really fast and secure, small and light-weight framework for PHP8 with great clean and flexible modular architecture containing awesome developing tools. No magic, just clean software engineering.

241.3k](/packages/mirekmarek-php-jet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
