From 227d67f087a9c7872af2775a90b154c8fcaa29ee Mon Sep 17 00:00:00 2001 From: Headgent Date: Tue, 9 Jun 2026 15:25:57 +0200 Subject: [PATCH] docs(seo): sharpen README + composer.json metadata, add doc-aware pre-push hook (#3) --- README.md | 4 ++-- composer.json | 11 ++++++++--- support/makefile/hooks.mk | 8 ++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8afc4b5..466b3aa 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ [![PHPStan Level](https://img.shields.io/badge/PHPStan-Level%208-brightgreen.svg)](phpstan.neon) [![PSR-12](https://img.shields.io/badge/Code%20Style-PSR--12-blue.svg)](phpcs.xml) -> Part of the **[Jardis Business Platform](https://jardis.io)** — Enterprise-grade PHP components for Domain-Driven Design +> Part of **[Jardis](https://jardis.io)** — the Domain-Driven Design platform for PHP. You model your domain; Jardis generates the production-ready hexagonal code (DTOs, Command/Query handlers, repositories, persistence). This package is part of the open-source foundation that generated code runs on. -**Authentication and authorization without framework coupling.** Opaque tokens, session management, password hashing, and role-based access control — designed for DDD applications. No HTTP layer, no JWT, no external dependencies. Pure support package. +**Authentication and authorization without framework coupling.** A focused RBAC for PHP covering opaque tokens, session management, password hashing, and role-based access control — designed for DDD applications. No HTTP layer, no JWT, no external dependencies. Pure support package. --- diff --git a/composer.json b/composer.json index de63414..0fc02e6 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "jardissupport/auth", "homepage": "https://docs.jardis.io/en/support/auth", - "description": "Token management, session handling, and security utilities for authentication and authorization", + "description": "Opaque token management, session handling, password hashing, and role-based access control for PHP DDD applications — framework-free, no JWT, no external dependencies", "type": "library", "license": "MIT", "minimum-stability": "stable", @@ -40,11 +40,16 @@ "auth", "authentication", "authorization", + "rbac", + "access-control", + "password-hashing", "token", "session", "security", - "domain driven design", + "php", + "domain-driven-design", + "hexagonal-architecture", "jardis", - "Headgent" + "headgent" ] } diff --git a/support/makefile/hooks.mk b/support/makefile/hooks.mk index fc38374..902809e 100644 --- a/support/makefile/hooks.mk +++ b/support/makefile/hooks.mk @@ -7,6 +7,14 @@ install-hooks: ## Install git hooks (pre-commit + pre-push) @echo '# Jardis Pre-Push Hook — Quality Gate' >> .git/hooks/pre-push @echo 'set -e' >> .git/hooks/pre-push @echo 'echo "=== Jardis Pre-Push Quality Gate ==="' >> .git/hooks/pre-push + @echo '# Doku-Fast-Path: keine *.php geaendert -> PHP-Gates ueberspringen (kein --no-verify, der Hook entscheidet korrekt)' >> .git/hooks/pre-push + @echo 'base="$$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo origin/develop)"' >> .git/hooks/pre-push + @echo 'changed="$$(git diff --name-only "$$base"...HEAD 2>/dev/null)"' >> .git/hooks/pre-push + @echo 'if ! echo "$$changed" | grep -q "[.]php$$"; then' >> .git/hooks/pre-push + @echo ' echo ">>> Nur Doku/Metadaten geaendert (keine *.php) — phpcs/phpstan/phpunit uebersprungen"' >> .git/hooks/pre-push + @echo ' echo "=== Quality Gate (Doku-Fast-Path) bestanden ==="' >> .git/hooks/pre-push + @echo ' exit 0' >> .git/hooks/pre-push + @echo 'fi' >> .git/hooks/pre-push @echo 'echo ">>> make phpcs"' >> .git/hooks/pre-push @echo 'make phpcs || { echo "PHPCS fehlgeschlagen — Push abgebrochen"; exit 1; }' >> .git/hooks/pre-push @echo 'echo ">>> make phpstan"' >> .git/hooks/pre-push