PHPackages                             agorlov/lipid - 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. [Framework](/categories/framework)
4. /
5. agorlov/lipid

ActiveLibrary[Framework](/categories/framework)

agorlov/lipid
=============

Object approach framework for web apps

1.0.7(3y ago)69.3k4[23 issues](https://github.com/agorlov/lipid/issues)MITPHPPHP &gt;= 8.0

Since Aug 30Pushed 3y ago4 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (14)Used By (0)

Lipid
=====

[](#lipid)

[![Hits-of-Code](https://camo.githubusercontent.com/2f9bd8f1d919477fc96cc5584d1f7aeb23b443f8dbd787a36a05c740fcd84bc9/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f61676f726c6f762f6c69706964)](https://hitsofcode.com/view/github/agorlov/lipid) [![Maintainability](https://camo.githubusercontent.com/ba199d067698a776452d646e9041369797383b87706c8034a1d8fbd412d21edd/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38313632356165353164353162643732316234362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/agorlov/lipid/maintainability) [![codecov](https://camo.githubusercontent.com/73ff9a6bc415597f49ddd61d9a8a5f52380923df097170291cf53f5f45f01d72/68747470733a2f2f636f6465636f762e696f2f67682f61676f726c6f762f6c697069642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/agorlov/lipid)

Lipid is an objects designed microframework for PHP web apps.

Quickstart
----------

[](#quickstart)

Create app directory:

```
$ mkdir testapp
$ composer require agorlov/lipid
```

Lipid is installed, start with example app, run:

```
$ vendor/bin/lipidstrap
```

3 files will be created:

- `index.php` - it's your app, it consists of actions-objects for each page or request;
- `src/ActIndex.php` - it's example action for main page;
- `tpl/index.twig` - it's example index page template.

And start your app:

```
$ php -S localhost:8000 index.php

```

Finaly open browser:

Enjoy Result and start creating your app pages.

How to create Actions (pages or api-responses)
----------------------------------------------

[](#how-to-create-actions-pages-or-api-responses)

**ActIndex.php**

```
