lgraubner / screenshotter

Simple service based on Symfony to create screenshots from websites.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screenshotter

Simple service based on Symfony to create screenshots from websites.

Api

POST http://localhost:8080/api/v1/screenshot
content-type: application/json

{
    "url": "https://heise.de"
}

Options

Name Default Description
delay 0 Delay after page load
quality 70 JPEG image quality
width 1280 Browser window width
height 800 Browser window height
fullPage false Full page screenshot

Commands

# run PHPStan
composer stan

# apply code formatting
composer php-cs-fixer

# run tests
composer test

# remove expired screenshots, should be called via cron regularily
bin/console app:cleanup-screenshots

# create a new client to use the api
bin/console app:create-client

# create test db schema
php bin/console doctrine:schema:create --env=test

# load fixtures
php bin/console doctrine:fixtures:load --env=test

Deployment

dep deploy

About

Simple service based on Symfony to create screenshots from websites.


Languages

Language:PHP 93.1%Language:Shell 3.5%Language:Dockerfile 2.1%Language:Twig 1.3%