How to create a custom package in PHP Table of Contents Introduction Key Concepts of a PHP Package Common Elements of a PHP Package Development Prerequisites Create Your Package Directory Initialize Composer Write Your Package Code Create Package Class File Write Tests (Optional but Recomended) Install PHPUnit Write a Test Configure PHPUnit Run the Tests Documentation Add README.md Publish Your Package (Optional) Uploading project to GitHub Initialize Git Repository Add .gitignore Push to GitHub Add Tag Submit to Packagist Submit Repository Conclusion References Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 By Ajeya Paul Full-Stack Developer from Kolkata, India View all of Ajeya Paul's posts.