Giter Club home page Giter Club logo

litmus's Introduction

Litmus PHP library

Build Status

PHP Implementation of the Litmus Customer RESTful API to test email and web pages on many email clients and browsers.

Install

composer require gee1web/litmus

Examples

Set Litmus API credentials:

use Geelweb\Litmus\Litmus;

Litmus::setAPICredentials(
    'your_api_key',
    'your_api_credential',
    'your_api_password');

Get the email clients availables for tests:

$clients = Litmus::getEmailClients();

Get the clients availables to test web-pages:

$clients = Litmus::getPageClients();

Create a page test on Safari 2 and IE7:

Litmus::createPageTest(array(
    'applications' => array('saf2', 'ie7'),
    'url' => 'http://geelweb.org',
));

litmus's People

Contributors

adamaveray avatar allphat avatar geelweb avatar k127 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

litmus's Issues

Problem with require_once of relative path

Hello,

I use this library for quite a while and it works like a charm.

I recently moved to using composer for installing external libraries. The only problem I found is with the require_once calls with relative paths like this one :

require_once 'Litmus/RESTful/Server.php';

Composer manages to make the class mapping pretty well so it would work without it. The problem is that it is a relative path which only works if the current path is actually in the folder /vendor/geelweb/litmus/library

I managed to prevent the error by adding this folder to the with set_include_path() so the files are found.

It would be nice to change the relative path into absolute path.

For example, in the file library/Litmus/RESTful/Client.php :

require_once 'Litmus/RESTful/Server.php';

could become :

require_once __DIR__ . '/Server.php';

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.