PHPackages                             eserozvataf/scabbia2-lightstack - 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. eserozvataf/scabbia2-lightstack

AbandonedArchivedLibrary

eserozvataf/scabbia2-lightstack
===============================

Scabbia2 LightStack Component

v0.1.2(10y ago)426[2 issues](https://github.com/eserozvataf/scabbia2-lightstack/issues)Apache-2.0PHPPHP &gt;=5.6.0

Since Sep 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/eserozvataf/scabbia2-lightstack)[ Packagist](https://packagist.org/packages/eserozvataf/scabbia2-lightstack)[ Docs](http://www.scabbiafw.com/)[ RSS](/packages/eserozvataf-scabbia2-lightstack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Scabbia2 LightStack Component
=============================

[](#scabbia2-lightstack-component)

[This component](https://github.com/eserozvataf/scabbia2-lightstack) is a simple abstraction layer which constructs `Middleware`, `Request` and `Response` concepts will be shared with other components or codes. It's lighter alternative for [smyfony](http://symfony.com/)'s [HttpKernel](https://github.com/symfony/HttpKernel) and [HttpFoundation](https://github.com/symfony/HttpFoundation).

[![Build Status](https://camo.githubusercontent.com/ec0315fac3d364e57be70898d9924dfc747dfbb07a7623ede040815733d97c78/68747470733a2f2f7472617669732d63692e6f72672f657365726f7a76617461662f73636162626961322d6c69676874737461636b2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/eserozvataf/scabbia2-lightstack)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/916e04d6cc7c4210a136f4eb048aca99ebc228029228d00e805b0e9487491d2c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657365726f7a76617461662f73636162626961322d6c69676874737461636b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/eserozvataf/scabbia2-lightstack/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/38f66428728f87d0f7b939bc9f147334b912b199fabb7eaacb74c48ad3ad109e/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d6c69676874737461636b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/eserozvataf/scabbia2-lightstack)[![Latest Stable Version](https://camo.githubusercontent.com/0ddb9cc8f5664be53726f2e10dd0bd17c3f5ad5beadc176a3049414ff67b9a57/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d6c69676874737461636b2f762f737461626c65)](https://packagist.org/packages/eserozvataf/scabbia2-lightstack)[![Latest Unstable Version](https://camo.githubusercontent.com/3ebb4c5a5821e33c7b4358d3d7135180d2cf47ecf5eaa384a5b4ccac76a38332/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d6c69676874737461636b2f762f756e737461626c65)](https://packagist.org/packages/eserozvataf/scabbia2-lightstack)[![Documentation Status](https://camo.githubusercontent.com/1ebeb3aa2c5cce31b6bf29a03a59cd40727e8fe235ba9ca28824ef1330a81328/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f73636162626961322d646f63756d656e746174696f6e2f62616467652f3f76657273696f6e3d6c6174657374)](https://readthedocs.org/projects/scabbia2-documentation)

Usage
-----

[](#usage)

### Request Object

[](#request-object)

```
use Scabbia\LightStack\Request;

$request = Request::generateFromGlobals();

// full url in scheme://host:port/directory/ format
echo $request->getEndpoint();

// http method
echo $request->getFormat();

// path info
echo $request->getPathInfo();

// remote ip
echo $request->getRemoteIp();

// is ajax request?
var_dump($request->isAsynchronous());

// instead of $_GET['p']
echo $request->get('p');

// or $_POST['p']
echo $request->post('p');

// or $_FILES['p']
var_dump($request->file('p'));

// or $_GET['p'] || $_POST['p'] || $_FILES['p']
echo $request->data('p');

// or $_SERVER['REQUEST_METHOD'];
echo $request->server('REQUEST_METHOD');

// or $_SESSION['p']
echo $request->session('p');

// or $_COOKIE['p']
echo $request->cookie('p');

// from http headers
echo $request->header('Accept-Language');

// check if a value with key 'p' is posted
var_dump($request->has('post', 'p'));

// check if a file with key 'p' is uploaded
var_dump($request->has('file', 'p'));

// retrieve all posted values
print_r($request->all('post'));

// retrieve all values in request
print_r($request->all());
```

Links
-----

[](#links)

- [List of All Scabbia2 Components](https://github.com/eserozvataf/scabbia2)
- [Documentation](https://readthedocs.org/projects/scabbia2-documentation)
- [Twitter](https://twitter.com/eserozvataf)
- [Contributor List](contributors.md)
- [License Information](LICENSE)

Contributing
------------

[](#contributing)

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome. All contributions should be filed on the [eserozvataf/scabbia2-lightstack](https://github.com/eserozvataf/scabbia2-lightstack) repository.

- To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
- To report a bug: If something does not work, please report it using GitHub issues.
- To support: [![Donate](https://camo.githubusercontent.com/630a83896c8ab4a5af0f79046098e3d8713112304fd119d86fa5957a0ecc5159/68747470733a2f2f696d672e736869656c64732e696f2f67726174697061792f657365726f7a76617461662e737667)](https://gratipay.com/eserozvataf/)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad4a7ec4c200bd6939df5aac1149f7d8d95aa5b8730a2276981f449c0c12fb18?d=identicon)[eserozvataf](/maintainers/eserozvataf)

---

Top Contributors

[![eser](https://avatars.githubusercontent.com/u/866558?v=4)](https://github.com/eser "eser (26 commits)")

---

Tags

stackscabbialarukediscabbia2scabbiafwlightstack

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/eserozvataf-scabbia2-lightstack/health.svg)

```
[![Health](https://phpackages.com/badges/eserozvataf-scabbia2-lightstack/health.svg)](https://phpackages.com/packages/eserozvataf-scabbia2-lightstack)
```

###  Alternatives

[asm89/stack-cors

Cross-origin resource sharing library and stack middleware

1.3k180.6M24](/packages/asm89-stack-cors)[phootwork/collection

The phootwork library fills gaps in the php language and provides better solutions than the existing ones php offers.

3924.8M15](/packages/phootwork-collection)

PHPackages © 2026

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