Tag

packagist

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Dec 8, 2023 · Backend Development

How to Create and Publish a Composer Package for PHP

This step‑by‑step guide shows how to set up a Composer package directory, write the package code, configure autoloading, add tests, publish the package to Packagist, and integrate it locally into a Laravel project, complete with all necessary commands and code examples.

BackendComposerLaravel
0 likes · 5 min read
How to Create and Publish a Composer Package for PHP
php中文网 Courses
php中文网 Courses
Apr 10, 2023 · Backend Development

How to Create and Publish a PHP Composer Package to GitHub and Packagist

This guide walks you through preparing a GitHub and Packagist account, creating a repository, initializing a Composer package (both automatically and manually), configuring PSR‑4 autoload, writing source code, and finally publishing the package by pushing to GitHub and submitting it to Packagist.

AutoloadBackendComposer
0 likes · 6 min read
How to Create and Publish a PHP Composer Package to GitHub and Packagist