Skip to content

Instantly share code, notes, and snippets.

@ilyamon
ilyamon / php.ini
Last active October 12, 2023 09:08
Default php.ini 8.0
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@ilyamon
ilyamon / php.ini
Last active January 12, 2024 16:35
Default php.ini 8.1
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@ilyamon
ilyamon / RefreshJWTDecorator.php
Last active January 15, 2024 13:51
Swagger decorator for API Platform, adding refresh JWT endpoint in documentation
<?php
declare(strict_types=1);
namespace App\User\Swagger;
use ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface;
use ApiPlatform\OpenApi\Model;
use ApiPlatform\OpenApi\OpenApi;
@ilyamon
ilyamon / BubbleSort.php
Last active February 1, 2024 21:31
Алгоритм сортування бульбашкою / bubble sort
<?php
for ($i = 0; $i < count($arr); $i++) {
for ($j = $i + 1; $j < count($arr); $j++) {
if ($arr[$i] > $arr[$j]) {
[$arr[$i], $arr[$j]] = [$arr[$j], $arr[$i]];
}
}
}