browsershot - Convert html to an image, pdf or string

  •        125

The package can convert a webpage to an image or pdf. The conversion is done behind the scenes by Puppeteer which controls a headless version of Google Chrome. It will save a pdf if the path passed to the save method has a pdf extension.

https://murze.be/2017/07/easily-covert-webpages-to-images-using-php/
https://github.com/spatie/browsershot

Tags
Implementation
License
Platform

   




Related Projects

screenshot-as-a-service - Website screenshot service powered by node.js and phantomjs

  •    Javascript

A simple screenshot web service powered by Express and PhantomJS. Forked from screenshot-app. Screenshots are cached for one minute, so that frequent requests for the same screenshot don't slow the service down. You can adjust or disable caching in the project configuration (see below).

page-monitor - capture webpage and diff the dom change with phantomjs ♨

  •    Javascript

First of all, install phantomjs, page-monitor relys on phantomjs to render webpage and genenrate screenshot. DO NOT use npm to install phantomjs on winidows, it can't be launched by spawn. see the default options here: https://github.com/fouber/page-monitor/blob/master/index.js , you can override any option for your monitoring.

wring - Extract content from webpages using CSS Selectors, XPath, and JS expressions

  •    PureScript

Wring utilizes PhantomJS for some of its commands. To use these, install it using your system package manager by running something like brew install phantomjs on OS X, or apt-get install phantomjs on Ubuntu. You can make sure it's on your PATH by running phantomjs -v.

manet - Website screenshot service powered by Node.js, SlimerJS and PhantomJS

  •    Javascript

There is only one true thing: instantly paint what you see. When you've got it, you've got it. When you haven't, you begin again. All the rest is humbug. Manet is a REST API server which allows capturing screenshots of websites using various parameters. It is a good way to make sure that your websites are responsive or to make thumbnails.

chrome-headless-screenshots - Using headless Chrome as an automated screenshot tool (alternative to PhantomJS)

  •    Javascript

May 2018 The Chrome team has released Puppeteer, which makes much of the code in this repository obsolete. As such, this project is no longer maintained and issues have been disabled. Please check out Puppeteer. This repo contains an example implementation of using headless Chrome as an automated screenshot tool on linux, which is a common use case for PhantomJS. Contributions are welcome.


screen - Website screenshot tool based on PHP and PhantomJS

  •    PHP

The directory /path/to/screen/jobs must be writeble as well. With this library you can make use of PhantomJs to screenshot a website.

grunt-photobox - Grunt plugin for creating screenshots of any site and compare them

  •    Smarty

Plugin to prevent your project of broken layout via screenshot photo sessions of your site. In your project's Gruntfile, add a section named photobox to the data object passed into grunt.initConfig().

phantomjs-gem - Phantomjs via Rubygems: Auto-install phantomjs on demand for current platform

  •    Ruby

I am lazy as hell, and wanted to be able to install PhantomJS via Rubygems/Bundler when using poltergeist. It keeps installations of phantomjs in $HOME/.phantomjs/VERSION/PLATFORM. When you call Phantomjs.path, it will return the path to the phantomjs executable in there. If that is not present, it will first fetch and install the prebuilt packages suitable for the current plattform (currently Linux 32/64 or OS X supported).

pageres - Capture website screenshots

  •    Javascript

Capture screenshots of websites in various resolutions. A good way to make sure your websites are responsive. It's speedy and generates 100 screenshots from 10 different websites in just over a minute. It can also be used to render SVG images.See pageres-cli for the command-line tool.

pageres-cli - Capture website screenshots

  •    Javascript

Capture screenshots of websites in various resolutions. A good way to make sure your websites are responsive. It's speedy and generates 100 screenshots from 10 different websites in just over a minute. It can also be used to render SVG images.See pageres for the programmatic API and issues tracker.

node-webshot - Easy website screenshots in Node.js

  •    Javascript

Webshot provides a simple API for taking webpage screenshots. The module is a light wrapper around PhantomJS, which utilizes WebKit to perform the page rendering. An optional options object can be passed as the parameter directly preceding the callback in a call to webshot.

mocha-phantomjs - :coffee: :ghost: Run client-side mocha tests in the command line through phantomjs

  •    Javascript

Ariya Hidayat archived phantomjs on March 3rd, 2018. (See this tweet for more info). phantomjs served us all as great headless browser for years, but now with Electron and headless modes for both Chrome and Firefox, we have much better options. mocha-chrome is a project inspired by mocha-phantomjs, so migration should be easy, and you will be running your tests on the same browser that 50% of your users actually use! I highly recommend it. I will accept pull requests still, but I won't be answering issues or doing feature work myself.

phantomjs-node - PhantomJS integration module for NodeJS

  •    Javascript

See examples folder for more ways to use this module. v1.0.x used to leverage dnode to communicate between nodejs and phantomjs. This approach raised a lot of security restrictions and did not work well when using cluster or pm2.

phridge - A bridge between node and PhantomJS

  •    Javascript

A bridge between node and PhantomJS. Working with PhantomJS in node is a bit cumbersome since you need to spawn a new PhantomJS process for every single task. However, spawning a new process is quite expensive and thus can slow down your application significantly.

phantom-lambda-template - The bare minimum for a phantomjs app to run on Amazon Lambda.

  •    Javascript

This is a reference implementation of running PhantomJS on AWS Lambda deployed with AWS CodePipeline. PhantomJS needs to be compiled for the OS you plan on running it and this can be painful because of that fact. This could be circumvented with a build server, which is a very personal decision and it was hard to commit to a build server for this little project. Now with AWS CodeBuild, this has become a trivial matter. So we are using AWS Developer tools 100%, AWS created a great walk through: Automating Deployment of Lambda-based Applications I have done my best to automate the walk through, so its simple and repeatable.

ghostdriver - Ghost Driver is an implementation of the Remote WebDriver Wire protocol, using PhantomJS as back-end

  •    Java

Ghost Driver is a pure JavaScript implementation of the WebDriver Wire Protocol for PhantomJS. It's a Remote WebDriver that uses PhantomJS as back-end. GhostDriver is designed to be integral part of PhantomJS itself, but it's developed in isolation and progress is tracked by this Repository.

menu - Html menu generator

  •    PHP

The spatie/menu package provides a fluent interface to build menus of any size in your php application. If you're building your app with Laravel, the spatie/laravel-menu provides some extra treats. Documentation is available at https://docs.spatie.be/menu.

regex - A sane interface for php's built in preg_* functions

  •    PHP

Php's built in preg_* functions require some odd patterns like passing variables by reference and treating false or null values as errors. spatie/regex provides a cleaner interface for preg_match, preg_match_all, preg_replace and preg_replace_callback. Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

schema-org - A fluent builder Schema.org types and ld+json generator

  •    PHP

spatie/schema-org provides a fluent builder for all Schema.org types and their properties. The code in src is generated from Schema.org's RFDa standards file, so it provides objects and methods for the entire core vocabulary. The classes and methods are also fully documented as a quick reference. All types can be instantiated though the Spatie\SchemaOrg\Schema factory class, or with the new keyword.

laravel-activitylog - Log activity inside your Laravel app

  •    PHP

The spatie/laravel-activitylog package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events. The Package stores all activity in the activity_log table. You can retrieve all activity using the Spatie\Activitylog\Models\Activity model.