PHPackages                             marcuwynu23/narciso - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. marcuwynu23/narciso

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marcuwynu23/narciso
===================

'Narciso' is a web library built on top of native PHP, designed to provide developers with a set of tools and functionalities to simplify and enhance web development tasks. It aims to streamline common web development processes such as handling HTTP requests, managing sessions, accessing databases, and generating dynamic content.

v1.0.0(2mo ago)111PHP

Since Mar 5Pushed 2mo ago1 watchersCompare

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

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

Narciso
=======

[](#narciso)

[![GitHub license](https://camo.githubusercontent.com/92e9b49cd5c1be3a4355c0bcfb62d4a87e6e0a605e6c9d2ceae5170143b33f7a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6172637577796e7532332f6e61726369736f)](https://github.com/marcuwynu23/narciso/blob/main/LICENSE)[![GitHub stars](https://camo.githubusercontent.com/f49cbf8d45cc51f760cbc129be4642133d969dd2232155a1627075f9459f8727/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d6172637577796e7532332f6e61726369736f)](https://github.com/marcuwynu23/narciso/stargazers)[![GitHub issues](https://camo.githubusercontent.com/7ed920e01c5debc6678d8a0cec3da6eaece130eca96ea80e85dd7cbc499bcb8a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d6172637577796e7532332f6e61726369736f)](https://github.com/marcuwynu23/narciso/issues)

Narciso is a lightweight web library built on top of native PHP, inspired by **FastAPI** and **Flask**. It gives you a simple, expressive API for routing, middlewares, CORS, rate limiting, security headers, and database access—so you can build APIs and web apps quickly without a heavy framework.

**Packagist:**

---

Features
--------

[](#features)

- **Routing** — Define routes with path parameters (e.g. `/users/:id`), multiple HTTP methods.
- **Middlewares** — Add middlewares in order (security, CORS, rate limit, or your own). User-friendly `use()` API.
- **Easy database integration** — One config for MySQL or SQLite; `$app->db` ready to use.
- **Cross-Origin (CORS)** — Configurable origins, methods, and headers; no more guessing.
- **Rate limiting** — Built-in per-IP rate limit middleware; plug in Redis later for production.
- **Security** — Optional security headers (X-Frame-Options, X-Content-Type-Options, etc.) and secure defaults.
- **Technology signature** — Make the stack silent or changeable: remove `X-Powered-By`, set it blank, or fake it (e.g. "Express") so the server type is obfuscated.
- **HTTP** — JSON requests/responses, redirects, views, session handling.

---

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

[](#installation)

```
composer require marcuwynu23/narciso
```

---

Quick start (Flask/FastAPI style)
---------------------------------

[](#quick-start-flaskfastapi-style)

```
