safaricom / mpesa-php-sdk

A PHP sdk for the new Mpesa RESTful APIs
188 stars 219 forks source link

Added package auto-discovery in Laravel #46

Closed StanleyMasinde closed 3 years ago

StanleyMasinde commented 3 years ago

What is this?

Below is the current config for laravel users. image Laravel supports package auto-discovery and that is what this PR brings.

Testing

I ran installation tests locally by

  1. Added a custom repository as below
    "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/StanleyMasinde/mpesa-php-sdk.git"
    }
    ]
  2. Required the package from my GH
    "safaricom/mpesa": "dev-dev-branch"
  3. I run composer update as you can see below. This package was autodiscovered. image

The branch used in this test is still active incase you want to replicate these steps.

StanleyMasinde commented 3 years ago

No activity