This is the website for the Browser Capabilities Project at browscap.org.
- Docker
- Docker Compose 2+ with buildx
The initial installation process looks like this:
$ git clone git@github.com:browscap/browscap-site.git
$ cd browscap-site
$ make buildThis automatically installs, builds and generates metadata for whichever browscap version is specified in the
composer.json, which should give you a fully working local browscap.org copy.
$ make runThis will run in the background, so to exit, docker compose down.
When it's running, you can visit http://localhost:8080/ to view the site.
A tool called "Adminer" is available on http://localhost:8081/ with which you can inspect the database. The login credentials for the development environment are:
- Username:
root - Password:
password - Database:
browscap
Updating to the latest browscap-site and browscap should be as simple as:
$ git pull
$ make buildFor composer update, composer require etc., it is recommended to do so inside the container:
$ docker compose run --rm --no-deps php-server composer updateThen rebuild from scratch:
$ make buildmake generate-statisticsmake delete-old-download-logsmake testor pass additional options withmake test OPTS="--testdox"make csor pass additional options withmake cs OPTS="-s"make static-analysisor pass additional options withmake static-analysis OPTS="--show-info=true"
Please see this wiki article.