Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the README #46

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Generic and extensible callable invoker.

[![Build Status](https://img.shields.io/travis/PHP-DI/Invoker.svg?style=flat-square)](https://travis-ci.org/PHP-DI/Invoker)
[![CI](https://github.com/PHP-DI/Invoker/actions/workflows/ci.yml/badge.svg)](https://github.com/PHP-DI/Invoker/actions/workflows/ci.yml)
[![Latest Version](https://img.shields.io/github/release/PHP-DI/invoker.svg?style=flat-square)](https://packagist.org/packages/PHP-DI/invoker)
[![Total Downloads](https://img.shields.io/packagist/dt/php-di/invoker.svg?style=flat-square)](https://packagist.org/packages/php-di/invoker)

Expand All @@ -12,7 +12,7 @@ Who doesn't need an over-engineered `call_user_func()`?

### Named parameters

Does this [Silex](http://silex.sensiolabs.org) example look familiar:
Does this [Silex](https://github.com/silexphp/Silex#readme) example look familiar:

```php
$app->get('/project/{project}/issue/{issue}', function ($project, $issue) {
Expand All @@ -28,7 +28,7 @@ $app->command('greet [name] [--yell]', function ($name, $yell) {
});
```

Same pattern in [Slim](http://www.slimframework.com):
Same pattern in [Slim](https://www.slimframework.com):

```php
$app->get('/hello/:name', function ($name) {
Expand Down Expand Up @@ -66,7 +66,7 @@ $app->command('greet [name]', function ($name, OutputInterface $output) {
});
```

[PHP-DI](http://php-di.org/doc/container.html) provides a way to invoke a callable and resolve all dependencies from the container using type-hints:
[PHP-DI](https://php-di.org/doc/container.html) provides a way to invoke a callable and resolve all dependencies from the container using type-hints:

```php
$container->call(function (Logger $logger, EntityManager $em) {
Expand Down Expand Up @@ -230,4 +230,4 @@ $invoker->call('WelcomeController::home');

That feature can be used as the base building block for a framework's dispatcher.

Again, any [PSR-11](http://www.php-fig.org/psr/psr-11/) compliant container can be provided.
Again, any [PSR-11](https://www.php-fig.org/psr/psr-11/) compliant container can be provided.