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 5d 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://www.gravatar.com/avatar/87624dd36266f45a2cd28d2808c09dbeed3bb7b1ca43c41d6628dfdc1c9bea9a?d=identicon)[MaaximeLH](/maintainers/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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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