PHPackages                             v1p3r75/nexa-orm - 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. [Database &amp; ORM](/categories/database)
4. /
5. v1p3r75/nexa-orm

ActiveLibrary[Database &amp; ORM](/categories/database)

v1p3r75/nexa-orm
================

NexaORM is a modern PHP Object-Relational Mapping (ORM) library designed to simplify database interactions and streamline the development of PHP applications.

v1.1.1(2y ago)6442MITPHP

Since Mar 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/v1p3r75/NexaORM)[ Packagist](https://packagist.org/packages/v1p3r75/nexa-orm)[ RSS](/packages/v1p3r75-nexa-orm/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

**Get Started**
===============

[](#get-started)

Introduction
------------

[](#introduction)

**NexaORM** is a modern PHP Object-Relational Mapping (ORM) library designed to simplify database interactions and streamline the development of PHP applications. It provides a lightweight and intuitive way to manage database entities, relationships, and queries.

Features
--------

[](#features)

- **Attribute Annotations (Entities):** Define entity properties using expressive annotations, making it easy to map database columns to PHP properties.
- **Models:** Provide a foundation for representing and managing data objects within the application.
- **Simplified Query Building:** Construct database queries effortlessly with a simple and intuitive query builder.
- **Relationships:** Define and work with relationships between entities using straightforward annotations.
- **Auto-Migration:** NexaORM includes an auto-migration feature that simplifies the process of updating the database schema to match changes in entity definitions.
- **Flexible Configuration:** NexaORM is designed with flexibility in mind, allowing developers to adapt the library to their specific project requirements.

Why NexaORM?
------------

[](#why-nexaorm)

**Intelligent Auto-Generated Migrations:**

Say goodbye to tedious manual migration creation! NexaORM's intelligent auto-generation feature analyzes your entities and creates the necessary migrations to update your database schema accordingly. This powerful feature offers several benefits:

- **Save Time and Effort:** Eliminate the time-consuming and error-prone process of writing migrations manually.
- **Reduced Errors:** Ensure consistency between your entities and database schema, minimizing the risk of errors and data inconsistencies.
- **Efficient Development:** Streamline your development workflow by automating a crucial step in database management.
- **Effortless Database Management:** NexaORM takes database management to the next level by simplifying and automating various tasks:
- **Automatic Schema Updates:** Easily update your database schema to match your evolving entities without manual intervention.
- **Rollback Support:** Safely revert to a previous database version if necessary, providing a safety net in case of unexpected issues.
- **Version Control Integration:** Integrate your migrations with version control systems, enabling seamless collaboration and tracking of changes.

**Seamless Integration:**

NexaORM seamlessly integrates with your existing development environment:

- **Works with Any Framework:** Use NexaORM with any PHP framework, including Laravel, Symfony, and CodeIgniter.
- **Flexible Configuration:** Customize NexaORM's behavior to match your specific project requirements.
- **Extensible Architecture:** Extend NexaORM's functionality with custom plugins and modules.

**Community and Support:**

Join a vibrant community of developers and contributors who actively support NexaORM:

- **Detailed Documentation:** Access comprehensive documentation covering all aspects of NexaORM usage.
- **Responsive Support:** Get help and answers to your questions from the NexaORM community and maintainers.
- **Continuous Development:** Benefit from regular updates and new features driven by the active NexaORM community.

Choose NexaORM and unlock the power of intelligent auto-generated migrations, effortless database management, seamless integration, and a supportive community. Embrace a more efficient and error-free development workflow for your PHP applications.

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

[](#installation)

Use Composer to install the package:

```
composer require v1p3r75/nexa-orm
```

Preview
-------

[](#preview)

```
// Define entity

#[Entity]
class UserEntity
{

  #[PrimaryKey]
  #[SmallInt]
  #[AutoIncrement(true)]
  public int $id;

  #[Strings]
  #[DefaultValue('John')]
  public string $username;

  #[Number]
  #[ForeignKey(ProfileEntity::class, 'id', [Nexa::ON_DELETE => Nexa::CASCADE, Nexa::ON_UPDATE => Nexa::CASCADE])]
  #[Comment('user profile')]
  #[Nullable]
  public int $profile;

  #[DateAndTime]
  #[DefaultValue(Nexa::DATETIME_NOW)]
  public DateTime $created_at;
}
```

```
// Create a model for database interation

use Nexa\Models\Model;
use Nexa\Test\Entities\UserEntity;

class User extends Model
{

  protected $entity = UserEntity::class;

}

User::insert(['username' => 'John Doe', 'email' => 'johndoe@test.com'])
```

Authors
-------

[](#authors)

- [Fortunatus KIDJE (v1p3r75)](https://github.com/v1p3r75) - Main Developer

Resources
---------

[](#resources)

- GitHub Repository:

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

844d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61166921?v=4)[Elfried Fortunatus KIDJE](/maintainers/v1p3r75)[@v1p3r75](https://github.com/v1p3r75)

---

Top Contributors

[![v1p3r75](https://avatars.githubusercontent.com/u/61166921?v=4)](https://github.com/v1p3r75 "v1p3r75 (65 commits)")

---

Tags

nexanexa-ormobject-relational-mappingorm-libraryphp-libraryphp-ormormnexanexa-ormnexaORMNexa PHPORM PHP

### Embed Badge

![Health badge](/badges/v1p3r75-nexa-orm/health.svg)

```
[![Health](https://phpackages.com/badges/v1p3r75-nexa-orm/health.svg)](https://phpackages.com/packages/v1p3r75-nexa-orm)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k300.5M7.5k](/packages/doctrine-orm)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k254.4M4.1k](/packages/doctrine-doctrine-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M736](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8465.5M96](/packages/laravel-doctrine-orm)

PHPackages © 2026

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