PHPackages                             sugiphp/sugi - 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. sugiphp/sugi

ActiveLibrary[Framework](/categories/framework)

sugiphp/sugi
============

SugiPHP Micro Framework

v0.0.1(11y ago)24961[1 issues](https://github.com/SugiPHP/Sugi/issues)MITPHPPHP &gt;=5.3

Since Sep 12Pushed 8y ago2 watchersCompare

[ Source](https://github.com/SugiPHP/Sugi)[ Packagist](https://packagist.org/packages/sugiphp/sugi)[ RSS](/packages/sugiphp-sugi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (15)Versions (3)Used By (0)

Sugi
====

[](#sugi)

[![Build Status](https://camo.githubusercontent.com/776007ae382dd0406677f49b910c72b50f77120d5ecf307036ba60d420b1de73/68747470733a2f2f7472617669732d63692e6f72672f537567695048502f537567692e737667)](https://travis-ci.org/SugiPHP/Sugi)

Sugi is a micro framework using SugiPHP Components as well as some other components. It works as a Dependency Injection Container and it is very flexible.

Hello World! example
--------------------

[](#hello-world-example)

```

```

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

[](#installation)

```
composer require sugiphp/sugi:dev-master

```

Usage
-----

[](#usage)

### Defined paths

[](#defined-paths)

```

```

### PSR-3 Logger

[](#psr-3-logger)

The App is using [SugiPHP\\Logger](https://github.com/SugiPHP/Logger/tree/v2.x) by default, which is [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) compliant. To use logger you can use one lazy method: `log(string $level, string $message, array $context = [])`, or use the instance `app["logger"]` to access methods given by the specification:

```

```

### PSR-7 Requests

[](#psr-7-requests)

The App is PSR-7 compatible and is using [zendframework/zend-diactoros](https://github.com/zendframework/zend-diactoros) internally. You can plug any other PSR-7 compatible library for ServerRequest (instance of \\Psr\\Http\\Message\\ServerRequestInterface.)

```

```

The URI is an instance of \\Psr\\Http\\Message\\UriInterface, so you can use:

```

```

and all other PSR-7 UriInterface methods. Note that manipulating an $app\["uri"\] will not change it's value:

```

```

### Cache

[](#cache)

The default cache is a virtual cache that is only available till the end of the script. All values can be set and get with one method `cache()`

```

```

By default Sugi is using [SugiPHP Cache](https://github.com/SugiPHP/Cache). To set up Sugi to use memcached server you can use a configuration file `/path/to/config/cache.php`:

```
return [
    "store" => "memcached",
    "host" => "127.0.0.1",
    "port" => 11211,
    "prefix" => "myprefix",
]

```

See config file [example](https://github.com/SugiPHP/Sugi/blob/master/example/app/config/cache.php)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~261 days

Total

2

Last Release

3996d ago

Major Versions

v0.0.1 → 1.x-dev2015-06-01

PHP version history (2 changes)v0.0.1PHP &gt;=5.3

1.x-devPHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/991c2430ace2ac70cb06507ae39e9e556e43bff5380e45ddd72c0f0294347794?d=identicon)[tzappa](/maintainers/tzappa)

---

Top Contributors

[![tzappa](https://avatars.githubusercontent.com/u/140298?v=4)](https://github.com/tzappa "tzappa (96 commits)")

### Embed Badge

![Health badge](/badges/sugiphp-sugi/health.svg)

```
[![Health](https://phpackages.com/badges/sugiphp-sugi/health.svg)](https://phpackages.com/packages/sugiphp-sugi)
```

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[getkirby/cms

The Kirby core

1.5k535.5k350](/packages/getkirby-cms)[laravel/roster

Detect packages &amp; approaches in use within a Laravel project

15410.4M7](/packages/laravel-roster)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
