<commit_before>1. Create a new folder {vendor}-{name}. Ex. agusrdz-github-api

  `mkdir -p agusrdz-github-api && cd agusrdz-github-api`

2. Init your repo

  `git init`

3. Init composer

  `composer init`

  This command will guide you through creating your composer.json file.


4. Set package name `vendor/name`, in this case `agusrdz/github-api`

5. Add a package description

6. Add an author: Your name <<EMAIL>>

7. Add minimum stability for package: dev

8. Define your dependencies (require) for production manually instead interactively

9. Define your dependencies (require-dev) for development manually instead interactively.

```
{
    "name": "juniorgrossi/hello-world",
    "description": "My first Composer project",
    "authors": [
        {
            "name": "<NAME>",
            "email": "<EMAIL>"
        }
    ],
    "minimum-stability": "dev",
    "require": {

    }
}
```

10. Confirm the generation of composer.json file

11. Confirm if you want thaht the vendor directory added to your .gitignore file

12. Now add all dependencies required to use the package, for example:

```
  {
    "name": "agusrdz/github-api",
    "description": "This is a demo package to use the API of Github.",
    "type": "package",
    "license": "MIT",
    "authors": [
        {
            "name": "<NAME>",
            "email": "<EMAIL>"
        }
    ],
    "minimum-stability": "dev",
    "require": {
      "php": ">=5.6"
    },
    "require-dev": {
      "phpunit/phpunit": "~5.0",
      "phpunit/phpunit-mock-objects": "~3.0"
    }
  }
```
13. The next steps are create two folders called:

`src` and `tests`

`mkdir -p src tests`

14. Inside `src` folder we need create the folders required for our package, in this example I'll create the folders `Facades` and `Providers`.

15. Now we'll mapping the src folders to psr-4 convention on the composer.json to autoload the package on start application

```
  {
    "name": "agusrdz/github-api",
    "description": "This is a demo package to use the API of Github.",
    "type": "package",
    "license": "MIT",
    "authors": [
        {
            "name": "<NAME>",
            "email": "<EMAIL>"
        }
    ],
    "minimum-stability": "dev",
    "require": {
      "php": ">=5.6"
    },
    "require-dev": {
      "phpunit/phpunit": "~5.0",
      "phpunit/phpunit-mock-objects": "~3.0"
    },
    "autoload": {
      "psr-4": {
        "AgusRdz\\GitHub\\": "src/"
      }
    }
  }
```

16. Run

`composer install`<commit_msg>Removed because the markdown is not formatted correctly<commit_after># TODO: Commit the new instructions to create a custom composer pacakage
{'fraction_non_alphanumeric': 0.14431818181818182, 'fraction_numerical': 0.014015151515151515, 'mean_word_length': 2.5980926430517712, 'pattern_counts': {'":': 36, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6552797', 'n_tokens_mistral': 884, 'n_tokens_neox': 840, 'n_words': 281}