How to create public libraries for programming languages

PHP

PHP

Create a public repository at https://github.com/ with CamelCase naming.

You have to prepare composer.json in the directory.

{
    "name": "hikarine3/kana2roma",
    "version": "1.0.0",
    "description": "Convert Hiragana to Romaji",
    "homepage": "https://github.com/hikarine3/Kana2Roma",
    "keywords": ["hiragana", "japanese", "romaji", "convert"],
    "type": "library",
    "license": "MIT",
    "authors": [
        {
            "name": "Hajime Kurita"
        }
    ],
    "autoload": {
        "psr-4": {
            "Hikarine3\\Kana2Roma\\": "src/Kana2Roma.php",
            "Hikarine3\\Tests\\": "tests/Kana2Roma/Kana2RomaTest.php"
        }
    },
    "require": {
        "php": ">=5.3.0"
    },
    "require-dev": {
        "phpunit/phpunit": "^7"
    },
    "scripts": {
        "test": "phpunit"
    }
}

Create account at
https://packagist.org/packages/

Submit created github repository.

Example
https://github.com/hikarine3/KanaToRoma