grunch/mercadopago-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

grunch/mercadopago-bundle

最新稳定版本:0.1.2

Composer 安装命令:

composer require grunch/mercadopago-bundle

包简介

This is a Symfony2 Bundle helps you use the mercadopago API

README 文档

README

Este bundle te permite adaptar de manera rápida el api de Mercadopago a tu proyecto en Symfony.

Latest Stable Version Total Downloads Latest Unstable Version

Licencia

License

Instalación con composer

1 Agrega en la llave require del composer.json

    "require" : {
        "grunch/mercadopago-bundle": "0.1.*",
    }
$ composer update

2 Agrega tus credenciales de mercadopago a tu proyecto:

Configura tus credenciales

# app/config/config.yml

grunch_mercadopago:
    client_id: xxxxxx
    client_secret: xxxxxxx
    sandbox: true

3 Registra el bundle en app/AppKernel.php

    $bundles = array(
        // ...
        new Grunch\MercadopagoBundle\GrunchMercadopagoBundle(),
    );

Comienza

  • Crea el objeto mercadopago:
<?php
// src/Acme/DemoBundle/Controller/DemoController.php

namespace Acme\DemoBundle\Controller;

// ...

class DemoController extends Controller
{

    public function indexAction()
    {
		// Crea el objeto MP
		$mp = $this->get('grunch_mercadopago')->getMp();
		// Crea un token
		$token = $mp->get_access_token();
	}
}
  • Crea las entidades con la consola:
$ php app/console doctrine:schema:update --force

Contribuye

  1. fork the project
  2. clone the repo
  3. get the coding standard fixer: wget http://cs.sensiolabs.org/get/php-cs-fixer.phar
  4. before the PullRequest you should run the coding standard fixer with php php-cs-fixer.phar fix -v .

Para más información sobre el API

https://developers.mercadopago.com/

统计信息

  • 总下载量: 306
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-24