PHPackages                             honey/honey - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. honey/honey

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

honey/honey
===========

HoneyPHP - micro organized

216PHP

Since Mar 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/honey-php/honey)[ Packagist](https://packagist.org/packages/honey/honey)[ RSS](/packages/honey-honey/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

HoneyPHP
========

[](#honeyphp)

Honey is a lightweight, easy way to create powerful applications.

It's a few components organized and mixed together to make the developing process easier.

Laravel is awesome, but too complex for some people, while Slim is too micro.

Honey shows the advantages of both in a mini environment.

Uses
----

[](#uses)

- Slim micro-framework(2.6.1, extended by a custom package called `Berry`) - routing, DI container, flash messages, input/cookies, logging, error handling, middleware/hook architecture
- Eloquent ORM(5.0) - connecting to database(MySQL, SQLite, etc.), interacting with tables(models), querying
- Twig(1.18.1) - rendering views(templates)

Setup
-----

[](#setup)

### Install

[](#install)

*The best way to install Honey is to use Composer.*

1. Install `composer`(in your project directory):

    ```
     curl -s https://getcomposer.org/installer | php

    ```
2. Create a **Honey** project:

    ```
     php composer.phar create-project honey/honey:dev-master {DIRECTORY}

    ```
3. **Profit**!

### Requirements

[](#requirements)

Because of its nature, Honey relies on different components, thus it requires to meet their needs.

You need **PHP &gt;= 5.4.0** to use Honey without problems. If you use encrypted cookies, you'll also need `mcrypt` PHP extension(Slim framework).

### First touch

[](#first-touch)

Honey comes with one controller(two routes - "/" and 404), one model("Guest", contains last IPs), two views.

They show an example usage of all components together, in this case shows last IPs that visited the site.

**If you want to start from scratch:**

- remove:

    ```
      app/controllers/404.php
      app/controllers/example.php
      app/models/Guest.php
      app/views/404.twig
      app/views/index.twig

    ```
- *(not really needed)* overwrite `app/config/filters.php` with:

    ```
