1. Go to this page and download the library: Download octo-php/symfony-bundle 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/ */
// Aucune configuration manuelle requise — le bundle détecte et enregistre les hooks
final class MyResetHook implements ResetHookInterface
{
public function reset(): void { /* ... */ }
}
bash
composer
yaml
# config/packages/octo.yaml
octo:
# Seuil RSS en bytes pour warning mémoire (défaut: 100 Mo)
memory_warning_threshold: 104857600
# Seuil durée reset en ms pour warning (défaut: 50)
reset_warning_ms: 50
# Reboot kernel tous les N requêtes (0 = désactivé)
kernel_reboot_every: 0
# Configuration Messenger (si octo-php/symfony-messenger installé)
messenger:
channel_capacity: 100
consumers: 1
send_timeout: 5.0
# Configuration Realtime (si octo-php/symfony-realtime installé)
realtime:
ws_max_lifetime_seconds: 3600
# Configuration OTEL (si octo-php/symfony-otel installé)
otel:
enabled: true
bash
php bin/async-server.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.