moko-github/maryui-simple-starter-kit
Composer 安装命令:
composer create-project moko-github/maryui-simple-starter-kit
包简介
Un starter kit Laravel léger basé sur [Mary UI](https://mary-ui.com), inspiré de [mary-ui-starter-kit](https://github.com/lauroguedes/mary-ui-starter-kit), simplifié pour une intégration sans `laravel-permission` et avec un module optionnel d'authentification Kerberos (SSO).
关键字:
README 文档
README
Un starter kit Laravel léger basé sur Mary UI, inspiré de mary-ui-starter-kit, simplifié pour une intégration sans laravel-permission et avec un module optionnel d'authentification Kerberos (SSO).
Stack technique
| Composant | Version |
|---|---|
| PHP | ^8.2 |
| Laravel | v12 |
| Livewire | v4 |
| Mary UI | v2 |
| Tailwind CSS | v4 |
| DaisyUI | v5 |
| Laravel Fortify | v1 |
| Pest | v3 |
Fonctionnalités incluses
- Authentification complète via Fortify : connexion, inscription, mot de passe oublié, réinitialisation, vérification e-mail
- Double authentification (2FA) : activation, désactivation, codes de récupération
- Page de paramètres : profil, mot de passe, apparence, 2FA
- Layout avec sidebar responsive (Mary UI) avec navigation mobile
- Module Kerberos optionnel : SSO via
REMOTE_USER(Apache/Nginx) - Tests Pest préconfigurés
- Formatage avec Laravel Pint
Démarrage rapide
composer create-project moko-github/maryui-simple-starter-kit mon-app cd mon-app npm install && npm run build
L'installateur interactif vous proposera d'activer le module Kerberos pendant la création du projet.
Installation manuelle
git clone https://github.com/moko-github/maryui-simple-starter-kit.git mon-app cd mon-app composer install cp .env.example .env php artisan key:generate php artisan migrate npm install && npm run build
Développement
# Démarre le serveur, la queue et Vite en parallèle composer run dev # Lancer les tests php artisan test # Formater le code vendor/bin/pint
Module optionnel : Authentification Kerberos (SSO)
Ce starter kit intègre un module d'authentification unique (SSO) via Kerberos, activable à l'installation ou à tout moment.
Activation
php artisan app:install
L'installateur copie les fichiers nécessaires, configure le middleware et les routes, ajoute les variables d'environnement et exécute les migrations.
Variables d'environnement
| Variable | Défaut | Description |
|---|---|---|
KERBEROS_ENABLED |
false |
Active/désactive l'authentification Kerberos globalement |
KERBEROS_SERVER_VAR |
REMOTE_USER |
Nom de la variable serveur contenant l'identifiant Kerberos |
KERBEROS_FALLBACK_AUTH |
true |
Autorise le formulaire login/password si Kerberos est indisponible |
KERBEROS_SIMULATION_MODE |
false |
Active le widget de simulation en local (ignoré si APP_ENV=production) |
KERBEROS_ADMIN_EMAILS |
(vide) | Emails des admins notifiés (vide = tous les admins en BDD) |
KERBEROS_AUTO_CLEANUP_DAYS |
30 |
Rétention des tentatives de connexion en jours |
KERBEROS_ALLOWED_DOMAINS |
(vide) | Whitelist des domaines Kerberos acceptés (vide = tous) |
KERBEROS_ADMIN_NOTIFICATION_MODE |
immediate |
Mode de notification : immediate, digest ou disabled |
Fichier .env complet par environnement :
Local (développement)
KERBEROS_ENABLED=true KERBEROS_SIMULATION_MODE=true KERBEROS_FALLBACK_AUTH=true KERBEROS_AUTO_CLEANUP_DAYS=7 KERBEROS_ADMIN_NOTIFICATION_MODE=disabled
Production
KERBEROS_ENABLED=true KERBEROS_SERVER_VAR=REMOTE_USER KERBEROS_FALLBACK_AUTH=true KERBEROS_SIMULATION_MODE=false KERBEROS_ADMIN_EMAILS=security@exemple.fr,admin@exemple.fr KERBEROS_AUTO_CLEANUP_DAYS=30 KERBEROS_ALLOWED_DOMAINS=corp.exemple.fr KERBEROS_ADMIN_NOTIFICATION_MODE=immediate
Scénarios d'authentification
| Scénario | Condition | Résultat |
|---|---|---|
| Succès | REMOTE_USER correspond à un utilisateur avec un rôle |
Connexion automatique |
| Sans rôle | REMOTE_USER correspond à un utilisateur sans rôle |
Formulaire de demande d'accès |
| Inconnu | REMOTE_USER introuvable en base de données |
Accès refusé + notification admin |
| Sans Kerberos | REMOTE_USER est vide |
Formulaire de connexion classique |
Configuration serveur web
Apache :
<Location /> AuthType Kerberos AuthName "Connexion Kerberos" KrbAuthRealm EXEMPLE.FR Krb5Keytab /etc/apache2/http.keytab KrbMethodNegotiate On KrbMethodK5Passwd Off require valid-user </Location>
Nginx :
location / { auth_gss on; auth_gss_realm EXEMPLE.FR; auth_gss_keytab /etc/nginx/http.keytab; auth_gss_service_name HTTP; }
Pour les détails complets, voir INSTALL.md.
Différences avec mary-ui-starter-kit
| Fonctionnalité | mary-ui-starter-kit | Ce projet |
|---|---|---|
| Gestion des rôles | laravel-permission (Spatie) |
Simple colonne role_id (optionnel via Kerberos) |
| SSO Kerberos | Non | Oui (module optionnel) |
| Complexité | Plus complète | Allégée, plus facile à personnaliser |
Licence
MIT
moko-github/maryui-simple-starter-kit 适用场景与选型建议
moko-github/maryui-simple-starter-kit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 moko-github/maryui-simple-starter-kit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 moko-github/maryui-simple-starter-kit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 moko-github/maryui-simple-starter-kit 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Alfabank REST API integration
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
Laravel package for Accurate Online API integration.
The skeleton application for the Geoffrey agent framework.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-23