PHPackages                             maaximelh/easy-mvc - 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. maaximelh/easy-mvc

ActiveLibrary[Framework](/categories/framework)

maaximelh/easy-mvc
==================

An easy MVC Framework which implements Doctrine ORM

311PHP

Since Jul 13Pushed 5y agoCompare

[ Source](https://github.com/MaaximeLH/easy-mvc)[ Packagist](https://packagist.org/packages/maaximelh/easy-mvc)[ RSS](/packages/maaximelh-easy-mvc/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Easy MVC Framework
==================

[](#easy-mvc-framework)

```
composer require maaximelh/easy-mvc

```

If Easy MVC Framework is not on the server root, please uncomment the following line in public/.htaccess

```
# RewriteBase /

```

Then, configure your framework into App\\Config.php.

This MVC Framework integrate by default the [Doctrine ORM](https://www.doctrine-project.org/projects/orm.html)

How Doctrine ORM works
======================

[](#how-doctrine-orm-works)

An user Entity has already created, you need to import it with CLI.

```
vendor/bin/doctrine orm:schema-tool:update --dump-sql --force
```

A new *users* table has been created in your database with the annotations in the Entity\\User.php file.

How it works ?

First, you need to get repository from Entity Manager.

```
$em = Entity::getEntityManager(); // Get Entity Manager
$repository = $em->getRepository(User::class); // Get User repository
```

Then you can do all the treatments you want, like the examples above.

Example of finder with repository.

```
$user = $repository->findBy(['email' => 'maxime@lehenaff.pro']); // Find all users where email = maxime@lehenaff.pro
$user = $repository->findOneByEmail('maxime@lehenaff.pro'); // Find one user where email = maxime@lehenaff.pro
$user = $repository->findAll(); // Find all users
```

Example of usage to create a user.

```
$user = new User();
$user->setFirstname("Maxime");
$user->setLastname("LE HENAFF");
$user->setEmail("maxime@lehenaff.pro");
$entityManager->persist($user); // Persist user into Doctrine System
$entityManager->flush(); // Flush all persistent data (save / update)
echo 'User : ' . $user->getId(); // Will output new User ID
```

Example of usage to delete a user by id.

```
$user = $repository->find(1); // Get user instance
$entityManager->remove($user); // Remove user into doctrine system
$entityManager->flush(); // Flush all persistent data (save / update)
```

Example of usage to updated user.

```
$user = $repository->find(1);
$user->setFirstname("MaaximeLH");
$entityManager->flush();
```

For more, see the Doctrine ORM documentations.

Generate Entities from database
===============================

[](#generate-entities-from-database)

If you have already tables in your database, you can generate Entities automatically with the following command.

```
php generator.php

# OR

vendor/bin/doctrine orm:convert-mapping --from-database annotation App/Entity
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43115870?v=4)[Maxime LE HENAFF](/maintainers/MaaximeLH)[@MaaximeLH](https://github.com/MaaximeLH)

---

Top Contributors

[![MaaximeLH](https://avatars.githubusercontent.com/u/43115870?v=4)](https://github.com/MaaximeLH "MaaximeLH (15 commits)")

### Embed Badge

![Health badge](/badges/maaximelh-easy-mvc/health.svg)

```
[![Health](https://phpackages.com/badges/maaximelh-easy-mvc/health.svg)](https://phpackages.com/packages/maaximelh-easy-mvc)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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