Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/castor-labs/context
- Owner: castor-labs
- License: bsd-3-clause
- Created: 2022-09-26T23:29:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T11:06:12.000Z (about 2 years ago)
- Last Synced: 2024-08-18T00:26:25.031Z (4 months ago)
- Language: PHP
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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).