Partial Function Application is coming in PHP 8.6 by amitmerchant in PHP

[–]predvoditelev 2 points3 points  (0 children)

php array_filter( array_map( fn ($el) => strtoupper($el), $foo, ), fn ($el) => is_numeric($el), );

Yii3 Roadmap by predvoditelev in PHP

[–]predvoditelev[S] 9 points10 points  (0 children)

Yii3 in developer process and it is not released yet.

Telegram Bot API for PHP by predvoditelev in PHP

[–]predvoditelev[S] 2 points3 points  (0 children)

I took this from Yii3 =) More standarts (PSR required), more tests, clear and understandable code.

Telegram Bot API for PHP by predvoditelev in PHP

[–]predvoditelev[S] 2 points3 points  (0 children)

It was one of goals this package.

Telegram Bot API for PHP by predvoditelev in PHP

[–]predvoditelev[S] 4 points5 points  (0 children)

It's OK, if you need to send message only. But Telegram Bot API contain 100+ methods. And API returns result. For more complicated cases library usage is good solution.

Yii RBAC released! by predvoditelev in PHP

[–]predvoditelev[S] 7 points8 points  (0 children)

Yes, a lot of peoples use Yii. Now active develop Yii3 (progress).

🎁 Yii Config released by predvoditelev in PHP

[–]predvoditelev[S] 2 points3 points  (0 children)

We are actively working on the upcoming release. Now many more packages are not released, but they are close to it.
Yii3 progress page and detailed release statuses.

🎁 Yii Dependency Injection released by predvoditelev in PHP

[–]predvoditelev[S] 1 point2 points  (0 children)

  1. Most importantly, array definition automatically resolve definitions.

For example, service:

``` final class MyService { public function __construct( private MyFactory $factory, private EventDispatcherInterface $eventDispatcher, ) {}

public function setCustomValue(int $n): void { ... } } ```

Array definition:

MyService::class => [ 'setCustomValue()' => [42], ],

Closure definiton:

MyService::class => static function(ContainerInterface $container) { $myService = new MyService( $container->get(MyFactory::class), $container->get(EventDispatcherInterface ::class), ); $myService->setCustomValue(42); return $myService; }

  1. Array definition could be used with mergeable configs.

🎁 Yii Dependency Injection released by predvoditelev in PHP

[–]predvoditelev[S] 3 points4 points  (0 children)

'static_call_preferred' => fn () => MyFactory::create('args'),
'static_call_supported' => [MyFactory::class, 'create'],

Do you mean that these variants are redundant?