Skip to content

Ajeya Paul

Full-Stack Developer from Kolkata, India

  • Home
  • About
  • Contact

How to create a custom package in PHP

Package

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
Published May 19, 2024
Categorized as COMPOSER, PHP Tagged composer, git, github, package, packagist, php

By Ajeya Paul

Full-Stack Developer from Kolkata, India

View all of Ajeya Paul's posts.

Post navigation

Previous post

Hello world!

Recent Posts

  • How to create a custom package in PHP
  • Hello world!

Recent Comments

  1. A WordPress Commenter on Hello world!

Archives

  • May 2024
  • June 2023

Categories

  • COMPOSER
  • PHP
  • Uncategorized
Ajeya Paul
Proudly powered by WordPress.