PHPackages                             penoaks/milky-framework - 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. penoaks/milky-framework

ActiveLibrary[Framework](/categories/framework)

penoaks/milky-framework
=======================

The Milky Framework

v6.0.3(9y ago)117MITPHPPHP &gt;=5.5.9

Since Jul 18Pushed 9y ago2 watchersCompare

[ Source](https://github.com/PenoaksDev/Milky-Framework)[ Packagist](https://packagist.org/packages/penoaks/milky-framework)[ Docs](https://github.com/PenoaksDev)[ RSS](/packages/penoaks-milky-framework/feed)WikiDiscussions bleeding Synced 3w ago

READMEChangelogDependencies (31)Versions (6)Used By (0)

Milky Framework
===============

[](#milky-framework)

[![StyleCI](https://camo.githubusercontent.com/ec01b31198707eaba0be072765dd074c108cb0513b01a53b559d8775cfffa6e5/68747470733a2f2f7374796c6563692e696f2f7265706f732f363436343336352f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/6464365)[![Build Status](https://camo.githubusercontent.com/998f26d9472203d2b2d1a98f724bcfe508b6aa47924bb08a0751da3752cc14c3/68747470733a2f2f7472617669732d63692e6f72672f70656e6f616b732f6672616d65776f726b2e737667)](https://travis-ci.org/penoaks/milky-framework)[![Total Downloads](https://camo.githubusercontent.com/7a98fcf8b61d96f463be3569b624d53008342c15043475bae3bff95106777473/68747470733a2f2f706f7365722e707567782e6f72672f70656e6f616b732f6672616d65776f726b2f642f746f74616c2e737667)](https://packagist.org/packages/penoaks/milky-framework)[![Latest Stable Version](https://camo.githubusercontent.com/8cd9466d0b163a56d796462f69e83421a5c495a7b5c827863ae7df96cdbeb639/68747470733a2f2f706f7365722e707567782e6f72672f70656e6f616b732f6672616d65776f726b2f762f737461626c652e737667)](https://packagist.org/packages/penoaks/milky-framework)[![Latest Unstable Version](https://camo.githubusercontent.com/e0e113b4ac5050a0b50373ab4df341dd056d7430cdb9aeac3a887fae3c416e03/68747470733a2f2f706f7365722e707567782e6f72672f70656e6f616b732f6672616d65776f726b2f762f756e737461626c652e737667)](https://packagist.org/packages/penoaks/milky-framework)[![License](https://camo.githubusercontent.com/5cddd258be4910f05542b0e23cd6aacd6919c5ee5227f5b9846cf28b7e6807b5/68747470733a2f2f706f7365722e707567782e6f72672f70656e6f616b732f6672616d65776f726b2f6c6963656e73652e737667)](https://packagist.org/packages/penoaks/milky-framework)

Getting Started
---------------

[](#getting-started)

Milky Framework uses Composer to manage dependencies. So, before using Milky Framework, make sure you have Composer installed on your machine.

### Dependencies

[](#dependencies)

Be sure you have the following dependencies installed.

- PHP &gt;= 5.5.9
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension

### Install with Composer

[](#install-with-composer)

You can simply install Milky Framework by issuing the Composer `create-project` command in your terminal:

```
composer create-project --prefer-dist penoaks/milky-framework framework
```

You can also alternatively install the Framework by simply requiring our repository in your composer project, remember to at least reference our framework-project for example project files.

```
composer require penoaks/milky-framework
composer update
```

### Your First Project

[](#your-first-project)

With Milky Framework, no application or user files are kept in the framework directory. Instead views, controllers, etc, are kept in the `src` (customizable) directory found in your webroot. Because of this you can simply update your installation by deleting the old framework directory and reinstalling. You should only need the `index.php` and `.htaccess` files to setup proper routing from there. Be sure you have the `mod_rewrite` apache module enabled.

#### .htaccess

[](#htaccess)

```

		Options -MultiViews

	RewriteEngine On

	# Ignore Let's Encrypt Challenges
	RewriteRule ^.well-known - [L]

	# Redirect Trailing Slashes If Not A Folder...
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)/$ /$1 [L,R=301]

	# Pass Request to Penoaks Framework
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^ index.php [L]

	# Handle Authorization Header
	RewriteCond %{HTTP:Authorization} .
	RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

```

#### index.php

[](#indexphp)

```
