Skip to content

Instantly share code, notes, and snippets.

View AkioSarkiz's full-sized avatar
👋
Hi there!

Dmytro Laptiev AkioSarkiz

👋
Hi there!
View GitHub Profile
@AkioSarkiz
AkioSarkiz / concurrent-pool.php
Created October 18, 2021 06:06 — forked from fgilio/concurrent-pool.php
Laravel HTTP client concurrent requests pool
<?php
// 1. Register the routes
Route::get('test/{lorem}', function ($lorem) {
sleep(3);
return response()->json([
'message' => $lorem,
'token' => Str::random(),
]);
@AkioSarkiz
AkioSarkiz / convertDateToRusFormat.php
Created November 18, 2019 19:58
Convert date to rus
<?php
# --------------------------
# @author Akio Sarkiz
# @date 18.11.2019
# --------------------------
declare(strict_types = 1);
final class Convert
{
public static function convertDateToRusFormat(\DateTime $time): String
{