From 4b2b5d63507d32a62d051ca55fd6eb74f5a7b332 Mon Sep 17 00:00:00 2001 From: Snider Date: Mon, 9 Mar 2026 17:56:14 +0000 Subject: [PATCH] feat: rename package to lthn/php for Packagist distribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - composer.json name: core/php → lthn/php - replace directive keeps backward compat with core/php consumers - .gitattributes excludes Go code, Docker, tests, build files from dist Co-Authored-By: Virgil --- .gitattributes | 16 ++++++++++++++++ composer.json | 7 +++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1b2c4de --- /dev/null +++ b/.gitattributes @@ -0,0 +1,16 @@ +# Exclude non-PHP files from Composer dist archives +*.go export-ignore +go.mod export-ignore +go.sum export-ignore +cmd/ export-ignore +bin/ export-ignore +docker/ export-ignore +changelog/ export-ignore +tests/ export-ignore +.core/ export-ignore +.forgejo/ export-ignore +phpunit.xml export-ignore +phpstan.neon export-ignore +qa.yaml export-ignore +CLAUDE.md export-ignore +CONTRIBUTING.md export-ignore diff --git a/composer.json b/composer.json index eea4d2e..eed6dc0 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "core/php", + "name": "lthn/php", "description": "Modular monolith framework for Laravel - event-driven architecture with lazy module loading", "keywords": [ "laravel", @@ -88,5 +88,8 @@ } }, "minimum-stability": "stable", - "prefer-stable": true + "prefer-stable": true, + "replace": { + "core/php": "self.version" + } }