PHPackages                             unmbtg/barud - 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. unmbtg/barud

ActiveLibrary

unmbtg/barud
============

My first Composer project

027PHP

Since Aug 2Pushed 8y agoCompare

[ Source](https://github.com/UnmBtg/BaRud)[ Packagist](https://packagist.org/packages/unmbtg/barud)[ RSS](/packages/unmbtg-barud/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

BaRud
=====

[](#barud)

Easy way to produce a highly customisable way to create an basic CRUD Api.

Basics
======

[](#basics)

This are the basics components of the Crud.

- Entities: They're responsible to represent something that must be stored.
- Criterias: They represent a way to search for something.
- Repositories: They're the way to store one Entity in one permanent state. They're also tasked to be able to retrieve the given Entity
- Services: They're where basic procidures must remain utilizing the Repositories to permament store the given procidures.
- Presenter: They give a better look for one given information.
- Transformer: They make one good looking (Presentable) information into something else.
- Validators: Validations that must be placed before storing something premanentely, used on Repositories.

Usage
=====

[](#usage)

Step 1: Create an Entity

In order to store something create an Entity, something around this lines.

```
