Install PagSeguro / PHP in Laravel

4

No composer.php I'm putting it like this:

"require": {
    "laravel/framework": "4.2.*",
    "pagseguro/php": "dev-master", #"pagseguro/php": "2.5.0",
    "cagartner/correios-consulta": "0.1.*",
    "intervention/image": "2.*"
},

But it is giving error:

  

Your requirements could not be resolved to an installable set of packages.

     

Problem 1      - The requested package pagseguro / php could not be found in any version, there may be a typo in the package name.

     

Potential causes:   - A typo in the package name   - The package is not available in a stable-enough version according to your minimum-stability setting     see link > for more details.

     

Read link for further common problems.

But the directory exists in GitHub . link

Solved!

The 2.5.0 version is not a directory on GitHub. After searching I found that it should be "pay-master / php": "dev-master" .

    
asked by anonymous 12.05.2015 / 22:20

1 answer

2

The library you are trying to use is not suitable for laravel.

Open the composer.json file and enter the following statement:

"require": {
    "michael/laravelpagseguro": "dev-master"
}

After inserting do not require Laravel PagSeguro, you should execute the command:

composer update

Source for more information: PagSeguro Laravel

    
12.05.2015 / 23:31