PHPackages                             lisi4ok/phalcon-bootstrap - 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. lisi4ok/phalcon-bootstrap

ActiveLibrary[Framework](/categories/framework)

lisi4ok/phalcon-bootstrap
=========================

This is a sample Bootstrapping application for the Phalcon PHP Framework

00PHP

Since Oct 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lisi4ok/phalcon-bootstrap)[ Packagist](https://packagist.org/packages/lisi4ok/phalcon-bootstrap)[ RSS](/packages/lisi4ok-phalcon-bootstrap/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Phalcon Bootstrap
=================

[](#phalcon-bootstrap)

Phalcon Bootstrap application library

Get Started
-----------

[](#get-started)

### Requirements

[](#requirements)

To run this application on your machine, you need at least:

- [PHP](https://www.php.net/releases/8.1/) &gt;= 8.1+
- Server Any of the following
    - [Apache](http://httpd.apache.org/) Web Server with [mod\_rewrite](http://httpd.apache.org/docs/current/mod/mod_rewrite.html) enabled
    - [Nginx](http://nginx.org/) Web Server
- [Phalcon Framework release](https://github.com/phalcon/cphalcon/releases) 5+ extension enabled

Installation
------------

[](#installation)

```
composer require lisi4ok/phalcon-bootstrap

```

License
-------

[](#license)

Phalcon API is open-sourced software licensed under the [MIT License](https://github.com/lisi4ok/phalcon-api/blob/master/LICENSE). ©

- Zaio Klepoyshkov (lisi4ok)
- Phalcon Team
- contributors

Usage
-----

[](#usage)

### Micro applications (Api, prototype or micro service)

[](#micro-applications-api-prototype-or-micro-service)

First create a config definition file inside your Phalcon project. This file should include the configuration settings, service &amp; middleware definitions and a path to your handlers.

To get started, let's assume the following project structure:

```
├── public
│   ├── index.php
├── src
│   ├── config
│   │    │── config.php
│   │    │── handlers.php
│   │── Controllers
│   │── Domain
│   │── Middleware
│   │── Service
│   │── var
│   │    │── log
├── tests
├── vendor
├── Boot.php
├── composer.json
├── .gitignore
├── README.md

```

and your PSR-4 autoload declaration is:

```
{
    "autoload": {
        "psr-4": {
            "Foo\\": "src/"
        }
    }
}
```

Create a config file **config.php** inside the **Config** directory and copy-&amp;-paste the following definition:

```
