PHPackages                             hyperf/nano - 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. hyperf/nano

ActiveProject

hyperf/nano
===========

Scale Hyperf application down to a single file

v2.0.1(2y ago)43113.6k↓100%26[10 issues](https://github.com/hyperf/nano/issues)MITPHPPHP &gt;=8.0

Since May 14Pushed 2y ago8 watchersCompare

[ Source](https://github.com/hyperf/nano)[ Packagist](https://packagist.org/packages/hyperf/nano)[ RSS](/packages/hyperf-nano/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (20)Versions (17)Used By (0)

English | [中文](./README-CN.md)

 [![](https://camo.githubusercontent.com/2b25f4b30fda95284b931407fa8a0648789efa6807847f3b0257e7d62b493bd5/68747470733a2f2f7472617669732d63692e636f6d2f6879706572662f6e616e6f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/hyperf/nano) [![Financial Contributors on Open Collective](https://camo.githubusercontent.com/54b3841ca27b7073c1e4dc60e38763d050fd9b1ff44484844dd21d06318b53e4/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6879706572662f616c6c2f62616467652e7376673f6c6162656c3d66696e616e6369616c2b636f6e7472696275746f7273)](https://opencollective.com/hyperf) [![Php Version](https://camo.githubusercontent.com/b89e839d5d52995202e3f77713d3272afdfffacf314e3562e9a20a1d070b6ff7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e322d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://secure.php.net/) [![Swoole Version](https://camo.githubusercontent.com/2a919512dbc7b8605e7608ed4e0550524778ce31dda34a32a6481a902694c61a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73776f6f6c652d2533453d342e342d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://github.com/swoole/swoole-src) [![Nano License](https://camo.githubusercontent.com/df3e0226513fa69cc1f6e248323ea8385a5f6796de64d0f3af3ac9cc412ffedf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6879706572662f6e616e6f2e7376673f6d61784167653d32353932303030)](https://github.com/hyperf/nano/blob/master/LICENSE)

Nano, by Hyperf
===============

[](#nano-by-hyperf)

Nano is a zero-config, no skeleton, minimal Hyperf distribution that allows you to quickly build a Hyperf application with just a single PHP file.

Purpose
-------

[](#purpose)

The author of `Svelte` has said that "Frameworks are not tools for organizing your code, they are tools for organizing your mind". The biggest advantages of Nano is that it doesn't interrupt your mind of thought. The Nano is good at self-declaration that you have no need to know the details of the framework. You can read the code fastly and know what it's for. Write a complete Hyperf application with minimal code declarations.

Feature
-------

[](#feature)

- No skeleton.
- Fast startup.
- Zero config.
- Closure style.
- Support all Hyperf features except annotations.
- Compatible with all Hyperf components.

Example
-------

[](#example)

Create a single PHP file, like `index.php`:

```
