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

ActiveLibrary[Framework](/categories/framework)

fastsitephp/fastsitephp
=======================

A Modern Open Source Framework for building High Performance Websites and API’s with PHP

1.5.1(3y ago)1302.8k271MITPHPPHP &gt;=5.3.0

Since Nov 15Pushed 1y ago9 watchersCompare

[ Source](https://github.com/fastsitephp/fastsitephp)[ Packagist](https://packagist.org/packages/fastsitephp/fastsitephp)[ Docs](https://www.fastsitephp.com/en/)[ RSS](/packages/fastsitephp-fastsitephp/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (5)Versions (20)Used By (1)

 [![FastSitePHP](docs/FastSitePHP.svg)](docs/FastSitePHP.svg)

🌟 Welcome to FastSitePHP!
=========================

[](#-welcome-to-fastsitephp)

**Thanks for visiting!** 🌠👍

  [![globe_with_meridians](https://camo.githubusercontent.com/0228ff28ac1772ccedad1175866f6ae63eaa57ecdc52b8848d7d742a5ea01bb1/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663331302e706e67)](https://camo.githubusercontent.com/0228ff28ac1772ccedad1175866f6ae63eaa57ecdc52b8848d7d742a5ea01bb1/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663331302e706e67) [![earth_americas](https://camo.githubusercontent.com/a1360ab1c771ebc5a7daa670194d88b4b466aed000d8ca24ba5b71a9ba9cb493/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663330652e706e67)](https://camo.githubusercontent.com/a1360ab1c771ebc5a7daa670194d88b4b466aed000d8ca24ba5b71a9ba9cb493/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663330652e706e67) [![earth_asia](https://camo.githubusercontent.com/35f1f7b16150806b7e20f3815b6b4552555b890cb14c78979076bed1d7128c59/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663330662e706e67)](https://camo.githubusercontent.com/35f1f7b16150806b7e20f3815b6b4552555b890cb14c78979076bed1d7128c59/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663330662e706e67) [![earth_africa](https://camo.githubusercontent.com/bd54af4d404df11dacb35f310f217128a6e90c1a356841c38419dd3c64e66c0a/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663330642e706e67)](https://camo.githubusercontent.com/bd54af4d404df11dacb35f310f217128a6e90c1a356841c38419dd3c64e66c0a/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f696d616765732f69636f6e732f656d6f6a692f756e69636f64652f31663330642e706e67)   [Español](https://github.com/fastsitephp/fastsitephp/blob/master/docs/i18n-readme/README.es.md)  [Bienvenido a FastSitePHP](https://github.com/fastsitephp/fastsitephp/blob/master/docs/i18n-readme/README.es.md)   [Português (do Brasil)](https://github.com/fastsitephp/fastsitephp/blob/master/docs/i18n-readme/README.pt-BR.md)  [Bem vindo ao FastSitePHP](https://github.com/fastsitephp/fastsitephp/blob/master/docs/i18n-readme/README.pt-BR.md)  FastSitePHP is a modern open source Framework for building High Performance websites and API’s with PHP. FastSitePHP has been designed for fast performance, coding flexibility, long term stability, ease of use, and a better overall development experience. FastSitePHP is minimal in size so it quick to download and easy to get started. FastSitePHP was first published in November of 2019; and it was written and used over many years prior to its release. As of 2024 has been used in a variety of applications and websites and is extremely stable and contains many unit tests.

This repository contains FastSitePHP’s Framework and main Website.

FastSitePHP includes many Standalone Components that can be used without using the main Application object or Framework so it’s easy to use FastSitePHP with other PHP Frameworks or Projects.

💫 Why use FastSitePHP?
----------------------

[](#-why-use-fastsitephp)

[![Great Performance](https://github.com/fastsitephp/fastsitephp/raw/master/website/public/img/icons/Performance.svg)](https://github.com/fastsitephp/fastsitephp/blob/master/website/public/img/icons/Performance.svg)[![Easy to setup and use](https://github.com/fastsitephp/fastsitephp/raw/master/website/public/img/icons/Lightswitch.svg)](https://github.com/fastsitephp/fastsitephp/blob/master/website/public/img/icons/Lightswitch.svg)**Great Performance** With FastSitePHP complex pages can be generated within thousands of a second using only a small amount of memory. This level of performance even allows for sites to run fast on low powered computers.**Easy to setup and use** FastSitePHP is designed so that it easy to setup to on any OS, easy to read the code, easy to develop with, and much more. With FastSitePHP high quality websites and apps can be developed at a rapid pace using fewer lines of code and minimal config.[![Quick to learn and debug](https://github.com/fastsitephp/fastsitephp/raw/master/website/public/img/icons/Samples.svg)](https://github.com/fastsitephp/fastsitephp/blob/master/website/public/img/icons/Samples.svg)[![Strong Security](https://github.com/fastsitephp/fastsitephp/raw/master/website/public/img/icons/Security-Lock.svg)](https://github.com/fastsitephp/fastsitephp/blob/master/website/public/img/icons/Security-Lock.svg)**Quick to learn and debug** FastSitePHP is well documented and comes with practical samples. FastSitePHP provides developer friendly error messages so that errors can be fixed quickly even if you have little or no experience programming with PHP.**Strong Security** Security has been carefully planned in all features of FastSitePHP so that it is both secure and easy to work with. Security features include Encryption (text, objects, and files), Signed Cookies, JWT, CORS, Proxy Server Validation, Rate Limiting, and more.🚀 Try it online!
----------------

[](#-try-it-online)

The main site for FastSitePHP provides a Code Playground where you can develop with PHP, HTML, JavaScript, CSS, and more. There is nothing to install and you can work with PHP directly on a server. If you have never used PHP this is a great way to learn PHP.

[![FastSitePHP Code Playground](https://github.com/fastsitephp/static-files/raw/master/img/screenshots/Playground.png)](https://github.com/fastsitephp/static-files/raw/master/img/screenshots/Playground.png)

🚀 Getting Started
-----------------

[](#-getting-started)

**Getting started with PHP and FastSitePHP is extremely easy.** If you do not have PHP installed then see instructions for Windows, Mac, and Linux on the getting started page:

[](https://www.fastsitephp.com/en/getting-started)

Once PHP is installed you can launch the site from the command-line as show below or if you use a Code Editor or IDE \[Visual Studio Code, GitHub Atom, etc\] then you can launch the site directly from your editor. See the above getting started page for more.

### Download and run the Main Website and Full Framework (~1.2 mb)

[](#download-and-run-the-main-website-and-full-framework-12-mb)

```
# Download this Repository
cd {root-directory}
php -S localhost:3000

```

To include support for rendering server-side markdown documents or support for crypto functions with older versions of PHP (PHP 5) first run the install script.

```
cd {root-directory}
php ./scripts/install.php

```

### Install using Composer (PHP Dependency/Package Manager) (~470 kb)

[](#install-using-composer-php-dependencypackage-manager-470-kb)

The FastSitePHP Framework can also be installed using Composer. When installed from Composer only the core Framework files are included and not this full Repository with the Main Website. The size of downloaded files is small, so it’s quick to include with existing PHP projects or use to start new projects. FastSitePHP classes can be used with existing Symfony, Laravel, Zend or other PHP Frameworks when using Composer.

```
composer require fastsitephp/fastsitephp

```

### Start with a Starter Site (~67 kb)

[](#start-with-a-starter-site-67-kb)

A starter site for FastSitePHP also exists that includes several examples pages and provides a basic directory/file structure. It’s small in size and quick to setup.

[![FastSitePHP Starter Site](https://github.com/fastsitephp/static-files/raw/master/img/starter_site/2020-01-10/home-page.png)](https://github.com/fastsitephp/static-files/raw/master/img/starter_site/2020-01-10/home-page.png)

📄 Example Code
--------------

[](#-example-code)

```
