https://github.com/nette-examples/di-example-doc
Example of using Nette DI Container
https://github.com/nette-examples/di-example-doc
Last synced: about 1 month ago
JSON representation
Example of using Nette DI Container
- Host: GitHub
- URL: https://github.com/nette-examples/di-example-doc
- Owner: nette-examples
- Created: 2021-10-06T12:09:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T19:33:25.000Z (over 2 years ago)
- Last Synced: 2026-01-01T21:50:49.791Z (5 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Example of using Nette DI Container
===================================
Dependency Injection (DI) enables classes to be relieved from the task of creating objects they depend on. These dependent objects are termed **services**. Comprehensive documentation is available at the official [Nette website](https://doc.nette.org/dependency-injection).
Installation
------------
To set up the example:
```shell
git clone https://github.com/nette-examples/di-example-doc
cd di-example-doc
composer install
```
Run the Demo
------------
Execute the demo using:
```shell
php example.php
```
PHP Requirements
----------------
This demo is compatible with PHP version 8.1 or newer.