PHPackages                             zofe/deficient - 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. zofe/deficient

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

zofe/deficient
==============

Experimental subset of laravel components

1.0.15(11y ago)6811MITPHPPHP &gt;=5.3.2

Since Oct 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/zofe/deficient)[ Packagist](https://packagist.org/packages/zofe/deficient)[ Docs](https://github.com/zofe/deficient)[ RSS](/packages/zofe-deficient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (16)Used By (1)

Deficient
=========

[](#deficient)

Deficient give you some of laravel components, without the entire environment.
You can also add some other package because I keepd the IOC and service-provider booting.
It has also some helper to keep a concise syntax.

Basically you'll get:

- eloquent
- validation
- translation
- blade
- [burp](https://github.com/zofe/burp) (a tiny, non blocking, router)

why
---

[](#why)

In some cases, with big projects, you can't switch to Laravel from start, you need to move step by step, section by section. In some other, you need just a great ORM, or/and template engine, or form validation, translations.. but not a "framework".

Think to "deficient" as a way to use laravel without move to laravel, or (better) a way to embrace laravel slowly and quietly using each component when, where and how you like in your current app.

On the other hand:

- deficient make a vendor of **3.5 mb**
- laravel build a vendor of **20 mb**

(using illuminate components of 4.1 --prefer-dist version for both)

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

[](#installation)

install via composer creating or adding dependency to your composer.json:

```
{
    "require": {
        "zofe/deficient": "dev-master"
    }
}

```

then running `composer install`

usage
-----

[](#usage)

you can setup a basic file structure, to store configurations, views, language files, and models.
The suggestd one is:

```
/config
    app.php
    database.php
/lang
    /en
       validation.php
/models
    User.php
/cache
/views
    hello.blade.php

```

To create this structure you can simply run a setup command:
(**important**: be sure that you've no folders conflict with your current application)

```
php vendor/zofe/deficient/deficient setup:folders

```

You must set write permission to /cache folder.
Then you can make an index.php in your root or use Deficient where you want in your project:

```
