Download the PHP package purplespider/silverstripe-basic-social-sharing without Composer

On this page you can find all versions of the php package purplespider/silverstripe-basic-social-sharing. 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 silverstripe-basic-social-sharing

Basic Social Sharing

Adds social media sharing fields to Silverstripe sites.

Description

This module adds social media meta tags for OpenGraph (Facebook) and Twitter to SiteTree and child page types. It also provides Title, Description and Image fields in the CMS to allow the default values to be overridden.

The module will look for Title, Description and Image values in the following order:

  1. As entered in the fields of the provided "Social Media Sharing" section in the CMS.
  2. The value of a specific field for a specific class, as configured in the YML (see below).
  3. The value of the appropriate field from the CMS "Metadata" section.
  4. The value from the "default" field, as specified in the module config. e.g. Page "Title" and "Content".

The module uses placeholder (and field description) text to indicate what values are being used, allowing you to then override them, only if necessary.

Supported social media meta tags include:

Requirements

SilverStripe 4.2+

Installation

  1. composer require purplespider/silverstripe-basic-social-sharing ^1.0
  2. run a /dev/build?flush=all
  3. Without any configuration, the module will begin rendering social media meta tags for all page types.
  4. Customise these on a per page/DO basis via the new "Social Media Sharing" section, below the existing "Metadata" section for pages.

Defaults

By default, the module will use the following fields to populate the meta tags:

NOTE: twitter:card will be set to "summary" by default, unless an image field is used. If an image field is used, the content will be set to "summary_large_image".

Configuration

Configure the module by editing mysite/_config/config.yml and set the following options:

Example config.yml

Silverstripe Blog Module Support

Add the following to a config.yml:

Adding social media meta tags to DataObjects

By default, this module will only add social media meta tags to SiteTree objects.

To add social media meta tags to DataObjects:

License

This project is licensed under the New BSD License

Original Module

This is a heavily modified and more opinionated version of https://github.com/innis-maggiore/silverstripe-social-meta-tags. Huge thanks to Innis for the development of the key functionality.


All versions of silverstripe-basic-social-sharing with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
silverstripe/cms Version ^4.2 || ^5.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 purplespider/silverstripe-basic-social-sharing contains the following files

Loading the files please wait ....