定制 killerwolf/jcdecauxcyclocity-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

killerwolf/jcdecauxcyclocity-bundle

Composer 安装命令:

composer require killerwolf/jcdecauxcyclocity-bundle

包简介

this bundle provides easy integration of the Cyclocity OpenData Rest API provided by JCDecaux

README 文档

README

Scrutinizer Code Quality SensioLabsInsight Dependency Status

This is a simple bundle to use the JCDecaux Cyclocity OpenData Rest API in a Symfony2 project

Install

Install with composer and enable the bundle in the kernel.

Usage

First, Add your API KEY (from jcdecaux developers portal) in app/conf/config.yml

killerwolf_jc_decaux_cyclocity:
    api_key: "YOU_API_KEY"

Finaly use the service into your controller,

<?php

namespace Killerwolf\JCDecauxCyclocityBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class DefaultController extends Controller
{
    public function indexAction(Request $request)
    {
    	$api = $this->get('cyclocity.data');

        return $this->render(
            'KillerwolfJCDecauxCyclocityBundle:Default:index.html.twig', 
            [
                'stations' => $api->getStationsByContract( 'Paris' )
            ]
        );
    }
}

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固