PHPackages                             fernet/fernet - 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. fernet/fernet

AbandonedArchivedProject[Framework](/categories/framework)

fernet/fernet
=============

The Fernet Framework

v0.3.5(5y ago)367MITCSS

Since Jan 10Pushed 5y agoCompare

[ Source](https://github.com/fernet-ws/fernet)[ Packagist](https://packagist.org/packages/fernet/fernet)[ Docs](https://fernet.ws)[ RSS](/packages/fernet-fernet/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (3)Versions (17)Used By (0)

Fernet
======

[](#fernet)

 [ ![Latest Stable Version](https://camo.githubusercontent.com/4260b0027472c5a616d7bcb73c9960c68c8f6fb964c80e0bc70e102af9fb25eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6665726e65742f6665726e6574) ](https://packagist.org/packages/fernet/fernet) [ ![Build Status](https://camo.githubusercontent.com/0d5454c9cdde4eeaad816124c6b1b0f4be8f212d5d40fc6f44c7e7b5514015e1/68747470733a2f2f7777772e7472617669732d63692e636f6d2f6665726e65742d77732f6672616d65776f726b2e7376673f6272616e63683d6d61696e) ](https://www.travis-ci.com/fernet-ws/framework) [ ![Coverage Status](https://camo.githubusercontent.com/09f1cdcb8866fcfdab7903b3d73a8481d0610d9d5e288e401055e2eb3e8c2ee8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6665726e65742d77732f6672616d65776f726b2f62616467652e7376673f6272616e63683d6d61696e) ](https://coveralls.io/github/fernet-ws/framework?branch=main) [ ![Documentation Status](https://camo.githubusercontent.com/79fba76e7095bb8b218f3c1a5f68dfa50cb4a7498f43f0fce5def30830c083b6/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f6665726e65742f62616467652f3f76657273696f6e3d6c6174657374) ](https://fernet.readthedocs.io/en/latest/?badge=latest)

A component based PHP Framework.

[Read the full documentation](https://fernet.readthedocs.io).

Set up
------

[](#set-up)

To install use [composer](https://getcomposer.org) create project command:

```
composer create-project fernet/fernet /path/to/app

```

You can use the [php built in server](https://www.php.net/manual/en/features.commandline.webserver.php) to run the app:

```
php -S 127.0.0.1:14567 -t public

```

Then go to [127.0.0.1:14567](http://127.0.0.1:14567).

Component
---------

[](#component)

Fernet component are inspired by React component. They are a PHP class with a [\_\_toString](https://www.php.net/manual/en/language.oop5.magic.php#object.tostring) method that returns the HTML the component will render. The class needs to be created in the **src/Component/**folder. The namespace should be **App\\Component**. Let's create a simple component that said Hi.

**src/Component/Hello.php**

```
