GithubHelp home page GithubHelp logo

otternq / browshot-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juliensobrier/browshot-php

0.0 2.0 0.0 130 KB

PHP library for Browshot API

Home Page: https://browshot.com/api/documentation

Shell 0.04% PHP 95.89% Perl 4.06%

browshot-php's Introduction

= Browshot (PHP)

Browshot (http://www.browshot.com/) is a web service to easily make screenshots of web pages in any screen size, as any device: iPhone©, iPad©, Android©, Nook©, PC, etc. Browshot has full Flash, JavaScript, CSS, & HTML5 support.

The latest API version is detailed at http://browshot.com/api/documentation. browshot follows the API documentation very closely: the function names are similar to the URLs used (screenshot/create becomes screenshot_create(), instance/list becomes instance_list(), etc.), the request arguments are exactly the same, etc.

The library version matches closely the API version it handles: Browshot 1.0.0 is the first release for the API 1.0, browshot 1.1.1 is the second release for the API 1.1, etc.

Browshot can handle most the API updates within the same major version, e.g. browshot 1.0.0 should be compatible with the API 1.1 or 1.2.



== Requirements

    PHP 5.1.6 or abaove
    PhpUnit 3.3.5 or above (to run unit tests)
    (Version 10.0.1 siwtched to cURL)


== Use Browshot

    git clone https://github.com/juliensobrier/browshot-php
    include Browshot.php

To run the unit tests (and understand how to use Browshot)

    php tests/AllTests.php
    
    ###Install with Composer
    An example composer.json file for Browshot
    
    {
        "repositories": [
            {
                "type": "git",
                "name": "browshot-php/browshot",
                "url": "http://github.com/otternq/browshot-php"
            }
        ],
        "require": {
            "browshot-php/browshot": "dev-composer"
        }
    }
    
    run composer update: `php composer.phar update` or `php composer.phar install`
    
    include composer packages and libraries:
        
    require "vendor/autoload.php";


== Contributing to Browshot
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2012-2013 Julien Sobrier

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.