PHPackages                             sena/nogal.se - 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. sena/nogal.se

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

sena/nogal.se
=============

Nogal (Student Edition) - This is an ORM implementation in PHP7 based on DAO to be used in the learning environments of the National Learning Service - SENA in Colombia.

0.0.6(8y ago)0831MITPHPPHP &gt;=7.0.0

Since Mar 5Pushed 7y ago2 watchersCompare

[ Source](https://github.com/jalfcolombia/nogal.se)[ Packagist](https://packagist.org/packages/sena/nogal.se)[ Docs](https://jalfcolombia.github.io/nogal.se/)[ RSS](/packages/sena-nogalse/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)DependenciesVersions (9)Used By (0)

Nogal (Student Edition)
=======================

[](#nogal-student-edition)

It is a tiny implementation of the PHP7 ORM programming model based on DAO (Data Access Object) for use in the learning environments of the National Learning Service - SENA in Colombia.

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

[](#installation)

For you to be able to use Nogal SE in your project, you must have the [Composer](https://getcomposer.org/) tool installed.

```
composer require sena/nogal.se
```

Estructura del modelo
---------------------

[](#estructura-del-modelo)

Nogal (Edición Estudiante) propone la siguiente estructura.

```
+--------------------
| model/
|-- base/
|---- UserBase.php
|-- User.php
+--------------------
```

Para poder explicar lo anterior debemos partir de que usaremos la siguiente estructura SQL para la tabla *User*.

```
CREATE TABLE DbUser (
    Id int,
    Nick varchar(20),
    Password varchar(32),
    Actived boolean DEFAULT true,
    Created_at timestamp DEFAULT NOW()
);
```

### Archivo *User.php*

[](#archivo-userphp)

El siguiente código sería entonces el contenido del archivo *User.php*

```
