PHPackages                             szenis/picro - 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. szenis/picro

ActiveLibrary[Framework](/categories/framework)

szenis/picro
============

A PHP micro framework

v0.2.0.x-dev(8y ago)08MITPHP

Since Sep 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/stein189/Picro)[ Packagist](https://packagist.org/packages/szenis/picro)[ RSS](/packages/szenis-picro/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Picro - PHP micro framework
===========================

[](#picro---php-micro-framework)

Getting started
---------------

[](#getting-started)

**Step 1 - .htaccess file**create an .htaccess file in the root of your project and fill it with the code below:

```

        Options -MultiViews

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

```

**Step 2 - require szenis/picro**
In your terminal execute: `composer require szenis/picro`

**Step 3 - create index.php**
Create the file index.php in the root of your project

**Step 4 - use the framework**

Here is an example of what your index.php could look like

```
