Download the PHP package neuron-php/orm without Composer

On this page you can find all versions of the php package neuron-php/orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package orm

CI codecov

Neuron ORM

Lightweight ORM component with attribute-based relation management for Neuron-PHP framework. Provides a Rails-like interface for defining and working with database relationships using PHP 8.4 attributes.

Features

Installation

Quick Start

1. Set up PDO connection

2. Define your models with attributes

3. Use Rails-like syntax

Relation Types

BelongsTo (Many-to-One)

HasMany (One-to-Many)

HasOne (One-to-One)

BelongsToMany (Many-to-Many)

Query Builder

The query builder provides a fluent interface for building database queries:

Column Selection

Select specific columns instead of fetching all columns:

JOIN Support

Perform SQL JOINs to combine data from multiple tables:

Aggregate Functions

Perform aggregate calculations directly in the query builder:

GROUP BY

Group results by one or more columns:

Raw Results

When using aggregate functions or computed columns, use getRaw() to preserve the raw database results instead of hydrating them into models:

Note: getRaw() returns an array of associative arrays instead of model objects. This is useful when:

Increment & Decrement

Atomically increment or decrement numeric columns:

Batch Updates

Update multiple records with a single query:

Transactions

Execute multiple database operations atomically with full ACID support:

Transaction Methods

Eager Loading

Prevent N+1 query problems by eager loading relations:

Creating Records

Create and save new records to the database:

Updating Records

Update existing records:

Deleting Records

Delete records from the database:

Dependent Cascade Strategies

Define what happens to related records when a parent is destroyed:

Available Strategies

Using Dependent Strategies

Example Usage

Delete vs Destroy

Attribute Reference

Table

Defines the database table for the model.

Parameters:

Column

Maps a property to a database column (optional, for explicit mapping).

Parameters:

BelongsTo

Defines a belongs-to (many-to-one) relationship.

Parameters:

HasMany

Defines a has-many (one-to-many) relationship.

Parameters:

HasOne

Defines a has-one (one-to-one) relationship.

Parameters:

BelongsToMany

Defines a belongs-to-many (many-to-many) relationship.

Parameters:

Requirements

Testing

The ORM includes comprehensive test coverage:

License

MIT


All versions of orm with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-pdo Version *
neuron-php/core Version 0.8.*
neuron-php/data Version 0.9.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package neuron-php/orm contains the following files

Loading the files please wait ...