Download the PHP package marketo/silverstripe-social-proof without Composer

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

SilverStripe-Social-Proof

=======

SilverStripe Social Statistics module

Maintainer Contact

Kirk Mayo

<kirk (at) solnet (dot) co (dot) nz>

Requirements

Documentation

The module is used query social statistics for different web pages and store the information and provide this information via an API

Setup

The Twitter service makes use of another SilverStripe module which uses Oauth to use the Twitter API. You will need to consult the the Readme file (../twitter-stripe/README.md) for details on setting up the Oauth details. The module config.yml also contains a setting under SocialProofSetting which is used to lock the urls down to certain domains.

Services

The module queuries various social media services which are managed via config.yml To add another service you will need to create a class with the properties service and statistics as these are used when adding a row to the URLStatistics model. The class will also need to declare a method called processQueue which is used in a cron job, this is enforced by a interface called SocialServiceInterface which should be implemented in any future service classes.

API Endpoints

Curently the following API endpoints exist

Accepting third party AJAX requests

If you want to allow third party javascript requests to query the service (like AJAX) you will need to set the CORS flag in your yml config to true so that the Access-Control-Allow-Origin header gets sent back to the requesting browser as per the example below.

Querying the API from a third party can be done with jQuery or AJAX. A simple synchronous javascript example is below where you can just call the function requestInfo with the host and the request.

You can also add an IP whitelist for the domains that you want to be processed by using:

If you want to map development domains to production domains, you can use the following:

Domains can also use wildcards for matching subdomains:

Composer Installation

composer require solnet/socialproof

TODO

Testing


All versions of silverstripe-social-proof with dependencies

PHP Build Version
Package Version
Requires silverstripe/queuedjobs Version 2.8.3
kmayo-ss/twitter-stripe Version 1.1.2
silverstripe/cms Version 3.*
composer/installers 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 marketo/silverstripe-social-proof contains the following files

Loading the files please wait ....