1. Go to this page and download the library: Download flytachi/winter-ppa library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
flytachi / winter-ppa example snippets
use Flytachi\Winter\Ppa\Mapping\Attributes\Entity\Table;
use Flytachi\Winter\Ppa\Mapping\Attributes\Hybrid\Id;
use Flytachi\Winter\Ppa\Mapping\Attributes\Primal\Varchar;
#[Table('users')]
class UserEntity
{
#[Id] public ?int $id = null;
#[Varchar(255)] public string $email;
#[Varchar(64)] public string $status;
}
use Flytachi\Winter\Ppa\Stereotype\Repository;
/** @extends Repository<UserEntity> */
class UserRepository extends Repository
{
public static string $table = 'users';
protected string $entityClassName = UserEntity::class;
protected string $dbConfigClassName = MainDbConfig::class;
}
use Flytachi\Winter\Ppa\Pool\PoolTelemetry;
use Flytachi\Winter\Ppa\Pool\PpaConnectionPool;
PpaConnectionPool::setLogger($logger); // unset: silent
PpaConnectionPool::setTimezoneProvider(fn() => $zone); // unset: no SET TIMEZONE at all
PoolTelemetry::setStoreProvider(fn() => $storage); // unset: nothing is published
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.