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

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

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.