{"id":32859965,"url":"https://github.com/pmourey/universludique","last_synced_at":"2026-05-06T10:31:15.195Z","repository":{"id":318914249,"uuid":"1073855620","full_name":"pmourey/UniversLudique","owner":"pmourey","description":"Plateforme multi-jeux de société en ligne : Belote, Tarot, Poker, DnD. Frontend React, backend PHP.","archived":false,"fork":false,"pushed_at":"2025-10-15T22:49:13.000Z","size":4576,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-16T12:17:36.686Z","etag":null,"topics":["php8","ratchet-php-server","reactjs","vitejs","websockets"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmourey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-10T18:16:00.000Z","updated_at":"2025-10-15T22:49:16.000Z","dependencies_parsed_at":"2025-10-17T06:42:05.442Z","dependency_job_id":null,"html_url":"https://github.com/pmourey/UniversLudique","commit_stats":null,"previous_names":["pmourey/universludique"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pmourey/UniversLudique","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmourey%2FUniversLudique","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmourey%2FUniversLudique/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmourey%2FUniversLudique/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmourey%2FUniversLudique/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmourey","download_url":"https://codeload.github.com/pmourey/UniversLudique/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmourey%2FUniversLudique/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283393885,"owners_count":26828705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-08T02:00:06.281Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php8","ratchet-php-server","reactjs","vitejs","websockets"],"created_at":"2025-11-08T18:01:40.702Z","updated_at":"2025-11-08T18:02:34.750Z","avatar_url":"https://github.com/pmourey.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UniversLudique — Guide rapide\n\nPlateforme de jeux en ligne (Tarot, Belote, Texas Hold'em, DnD 5e).\nBackend PHP (Ratchet WebSocket), frontend React (Vite).\n\n## Démarrage rapide\n1. Installer les dépendances :\n   - Backend : `cd backend \u0026\u0026 composer install`\n   - Frontend : `cd frontend \u0026\u0026 npm install`\n2. Ouvrir deux terminaux :\n   - Backend : `php backend/bin/server.php`\n   - Frontend : `npm run frontend:dev` puis ouvrir http://localhost:5173\n\n## Structure du dépôt\n- `backend/` — serveur PHP, logique des jeux\n- `frontend/` — UI React, scripts de simulation\n- `tests/` — tests PHP\n- `scripts/` — bots/simulations\n\n## Fonctionnalités principales\n- Salons, chat, parties tour par tour\n- Jeux : Tarot, Belote, Hold'em, DnD (voir code pour détails)\n- Simulations bots (voir `frontend/scripts/`)\n\n## Jetons (monnaie virtuelle)\n- Solde affiché via `tokenBalance`\n- Usage : buy-in, objets/cosmétiques, tests/dev\n- Opérations critiques côté serveur (`buy_in`, `grant_tokens`, `token_balance`, `token_change`)\n- Voir README_DETAILED.md pour toutes les règles\n\n## Protocole WebSocket (essentiel)\n- Messages JSON `{ type: string, payload?: object }`\n- Actions : `register`, `create_room`, `join_room`, `chat`, `action`, etc.\n- Voir scripts de simulation pour exemples\n\n## Commandes utiles\n- `npm run frontend:dev` — démarre le frontend\n- `npm run frontend:ws:belote` — simulateur Belote\n- `npm run frontend:ws:holdem` — simulateur Hold'em\n- `npm run backend:serve` — lance le backend\n\n## Pour aller plus loin\n- Voir `README_DETAILED.md` pour la documentation complète (règles jetons, protocole WS, structure avancée, FAQ, etc.)\n\n---\n\nBesoin d’exemples WS, d’une version anglaise ou d’aide ? Voir README_DETAILED.md ou contacter le mainteneur.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmourey%2Funiversludique","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmourey%2Funiversludique","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmourey%2Funiversludique/lists"}