Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
IT Security NachrichtenNew infosec products of the week: October 2, 2026(02.10.2026 um 06:00 Uhr)
•
IT Security NachrichtenERP-Migration: Kostenfalle Schnittstellen(02.10.2026 um 05:34 Uhr)
•
Android Tipps & SecurityAmazon reduziert eure Prime-Gebühr jetzt auf den alten Preis(02.10.2026 um 06:00 Uhr)
•••
Sicherheitslücken (CVE)CVE-2026-21140 | Samsung Devices access control (EUVD-2026-91157)(02.10.2026 um 05:08 Uhr)
••••
Sichere ProgrammierungWhat Can NSL Actually Do? — A Look at Nova Signal Language(02.10.2026 um 05:14 Uhr)
•
IT Security NachrichtenNew infosec products of the week: October 2, 2026(02.10.2026 um 06:00 Uhr)
•
IT Security NachrichtenERP-Migration: Kostenfalle Schnittstellen(02.10.2026 um 05:34 Uhr)
•
Android Tipps & SecurityAmazon reduziert eure Prime-Gebühr jetzt auf den alten Preis(02.10.2026 um 06:00 Uhr)
•••
Sicherheitslücken (CVE)CVE-2026-21140 | Samsung Devices access control (EUVD-2026-91157)(02.10.2026 um 05:08 Uhr)
••••
Sichere ProgrammierungWhat Can NSL Actually Do? — A Look at Nova Signal Language(02.10.2026 um 05:14 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Add composer package using path for development

Testing a Local Laravel Package with Composer Path Repositories When developing a custom Laravel package, you might want to test it inside another Laravel…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!




Testing a Local Laravel Package with Composer Path Repositories



When developing a custom Laravel package, you might want to test it inside another Laravel project without publishing it to Packagist. Composer allows this with the path repository type, which creates a symlink to your package instead of copying it.



This way, any changes you make to the package’s files are instantly available in your testing project.









1. Add the Local Package Repository



In your Laravel project (the consumer project), tell Composer where your local package is located.



Run:




composer config repositories.local '{"type": "path", "url": "/absolute/path/to/my-dev-package"}' --file composer.json







  • Replace /absolute/path/to/my-dev-package with the full path to your package’s root folder.

  • This adds a repositories entry to your composer.json for the given path.









2. Require the Package



Install your package into the consumer project:




composer require my/dev-package







  • Use the same name defined in your package’s composer.json under "name": "my/dev-package".

  • Composer will create a symlink so changes in your package source are reflected immediately.









3. Work on the Package in Real Time



Since this is a symlink, you can:




  • Edit files in /absolute/path/to/my-dev-package

  • Refresh or run your Laravel project

  • See changes instantly without reinstalling the package









4. Optional: Use “version” for Better Control



If your package composer.json contains a "version" key (e.g., "version": "1.0.0") or uses a dev-branch version, Composer can handle updates more gracefully.



Example for a development branch:




"version": "dev-main"






Then require:




composer require my/dev-package:dev-main












5. When Ready to Publish



Once your package is stable, you can:




  • Remove the path repository from composer.json

  • Require it from Packagist or your private VCS repository

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Add composer package using path for development

Thematisch verwandte Begriffe: composer, package, using, path · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag