alphalemon/social-sdk-bundle 问题修复 & 功能扩展

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

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

alphalemon/social-sdk-bundle

Composer 安装命令:

composer require alphalemon/social-sdk-bundle

包简介

Adds the SDK required by social networks at the end of the web page, only when the SDK is required

README 文档

README

This bundle adds the SDK required by social networks at the end of the web page, only when the SDK is required.

This means that the facebook sdk is added to the page, only when a fecebook button is added to the page.

Supported SDK

At the moment the SocialSDK Bundle supports those social networks:

  • Twitter
  • Facebook

Installation

You can add the SocialSDK Bundle to your application adding it to your composer.json file:

.. code-block:: text

{
    "require": {
        "alphalemon/social-sdk-bundle": "dev-master",        
    }
}

If you use the AlphaLemonBootstrapBundle the bundle is autoloaded, otherwise add it to the application AppKernel.php file:

.. code-block:: php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            [...]

            new AlphaLemon\Block\SearchBlockBundle\SearchBlockBundle(),
        );
    }
}

Add a new SDK

A new SDK is easily added, add a new provider that extends the AlphaLemon\Block\SocialSDKBundle\Core\Sdk\SdkBase. This abstract base class provides a common constructor and implements the AlphaLemon\Block\SocialSDKBundle\Core\Sdk\SdkInterface, without implementing its method as well, which must be defined in the derived class.

Unit test

The bunde is not yet unit tested, so use it just with test or implementation pourpose.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-12-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固