Download the PHP package andre1ka/yii2-social-share without Composer

On this page you can find all versions of the php package andre1ka/yii2-social-share. 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 yii2-social-share

yii2-social-share

Latest Stable Version Total Downloads Latest Unstable Version License

Yii2 Social Link Sharer

Built using Bootstrap Social and Font Awesome , two very cool projects ! Please keep in mind that this is a work in progress.

Install

The preferred way of installing is through composer

OR add to composer.json

Example usage :

By default you can run the widget with no configuration parameters

this will produce an unordered list "ul" tag like

Changing the layout of the widget

The output of this will be something similar to :

The shared URL

By default the widget set's the URL to the current route, you can change that as needed by using the "url" property.

Or

Don't forget to require the helper library Url and to use the second parameter of the method for the full URL to the page.

The shared data

By default the widget pass to social network only URL. Some networks, for example Pinterest, allow pass title, description and image. You can change that as needed by using the "title", "description" or "image" properties.

Attributes of main container

You can add or change attributes of the main container using the htmlOptions property. By default the main container has an id attribute similar to #w0, you can change that if you want.

Widget button types

The widget provides three types of buttons extra-small (small icons only) small (icon only) large (icon + text)

The default text for the large buttons is "Share on NETWORK", where NETWORK is the name of the social network ex : Facebook. You can change the default text by using the "text" property of the widget.

Networks

Currently the widget provides 6 buttons Facebook Google Plus Twitter Pinterest Linkedin Vk odnoklassniki

Including only some networks

For some reason you may need to include only some networks. In order to do that you can use the "include" property of the widget

Presented social networks will be shown in that order in which you put them.

Excluding some networks

For some reason you may need to exclude one or more networks. In order to do that you can use the "exclude" property of the widget

Add utm marks

For enterprise apps you mostly need to add UTM mark for analytics.

Contributions

Contributions are most welcomed, just fork modify and submit a pull request.


All versions of yii2-social-share with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.4
yiisoft/yii2 Version 2.*
bower-asset/bootstrap-social Version ~4.0
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 andre1ka/yii2-social-share contains the following files

Loading the files please wait ....