Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/castor-labs/context

Context information passing abstraction for PHP
https://github.com/castor-labs/context

Last synced: about 2 months ago
JSON representation

Context information passing abstraction for PHP

Awesome Lists containing this project

README

        

Castor Context
==============

![php-workflow](https://github.com/castor-labs/context/actions/workflows/php.yml/badge.svg?branch=main)
![code-coverage](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg?longCache=true&style=flat)

Context passing abstraction for modern PHP projects, inspired in [Golang's `context` package](https://pkg.go.dev/context).

## Installation

```bash
composer require castor/context
```

## Quick Start

```php
value('foo'); // Prints: bar
```

To learn about the rationale behind this library, best practices when using it and implementation examples, check
the [documentation](https://castor-labs.github.io/docs/packages/context/intro.html).