A WordPress php library for interacting with the WordPress.com mshots API.
Shell PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
tests
.codeclimate.yml
.csslintrc
.editorconfig
.eslintignore
.eslintrc
.gitignore
.jshintrc
.travis.yml
README.md
composer.json
phpcs.ruleset.xml
phpcs.xml
phpunit.xml.dist
wp-mshots-api.php

README.md

wp-mshots-api

A WordPress php library for interacting with the WordPress.com mshots API.

https://s.wordpress.com/mshots/v1/{{ DOMAIN }}?w= {{Width}}

Usage:

// Initate New MShots API.
$mshots = new MShotsAPI();

// Set Screenshot URL.
$screenshot_url = $mshots->get_screenshot('https://wp-api-libraries.com', 1024);

// Display Screenshot.
echo '<img src="' . $screenshot_url . '" />';