Download the PHP package giko/sinaweibo-bundle without Composer

On this page you can find all versions of the php package giko/sinaweibo-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sinaweibo-bundle

介绍

本组件可将新浪微博集成到Symfony2中。 组件提供新浪微博登陆认证,并可利用新浪微博接口进行微博发布等分享行为。 本组件整合FOSUserBundle,保存新浪微博登陆后的用户信息

组件仅支持Symfony2.1+

安装

============

Step 1. 将本组件 和 添加到 composer.json 文件:

Step 2. 使用Git submodules的方式将 ElmerZhang / WeiboSDK 新浪微博代码添加代码库。 或者你也可以通过手动下载的方式下载并解压到对应的目录。

此步骤现在省略吧。 中已经自带了一个WeiboSDK copy,而且修改了几行代码来解决一个notiec错误。。

Step 3. 在应用内核代码中注册组件:

Step 4. 配置FOS User。

Note: 关于FOS User的更多信息,请参考 https://github.com/FriendsOfSymfony/FOSUserBundle

Step 5. 配置新浪微博组件:

Step 6. 使用FOSUserBundle建立你自己的用户模块

建立用户Model,并增加几个新浪微博字段:

*> Note: config.yml中的必须与新浪微博接口中回调地址设置一致。

Step 7. 建立新浪微博Controller:

增加Route

Step 8. 在安全配置中,增加以下设置:

Step 9. 在模板文件中,放置新浪微博的登陆按钮

Step 10. 好吧

好吧,我承认,上面的流程太长了点。我不该这么折磨你。其实在 doc/Example 中,有现成的代码。按照需要,提取到你的代码中即可。


如果,咳咳,我的代码对你有帮助,请给我买杯咖啡吧。 通过支付宝捐赠

使用 新浪微博小组件 @JS-Widget

组件已包含了用户@JS-Widget的模板插件,使用前,需要在你的模板文件的顶部中进行注册:

注册好了之后,在你需要放置按钮的地方,写这么一段JS代码:

最后,调用->initialize()方法来完成所有的工作:


All versions of sinaweibo-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version 2.*
symfony/security-bundle Version 2.0.*
kertz/twitteroauth Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package giko/sinaweibo-bundle contains the following files

Loading the files please wait ....