dependabot[bot] 68550b4859 | il y a 2 ans | |
---|---|---|
controllers | il y a 3 ans | |
data | il y a 4 ans | |
lib | il y a 4 ans | |
migrations | il y a 6 ans | |
public | il y a 5 ans | |
scripts | il y a 8 ans | |
tests | il y a 5 ans | |
views | il y a 5 ans | |
.gitignore | il y a 7 ans | |
CONTRIBUTING.md | il y a 8 ans | |
LICENSE | il y a 8 ans | |
README.md | il y a 6 ans | |
composer.json | il y a 3 ans | |
composer.lock | il y a 2 ans | |
config.template.php | il y a 8 ans | |
phpunit.xml | il y a 8 ans |
Telegraph is an API for sending Webmentions.
See https://telegraph.p3k.io/api
Fork and clone this repo.
Install MySQL, composer, beanstalk, and phpunit if they're not already
installed, e.g. brew install mysql composer beanstalk phpunit
.
Start MySQL and beanstalkd
.
Copy config.template.php
to config.test.php
. Update the appropriate values
for your local environment if necessary.
Run these commands to install the dependencies, create a local database, and run the tests:
$ composer install
$ mysql [ARGS] -e 'CREATE DATABASE telegraph;'
$ mysql [ARGS] < migrations/schema.sql
$ phpunit
# Hack hack hack!
Telegraph photo: https://www.flickr.com/photos/nostri-imago/3407786186
Telegraph icon: https://thenounproject.com/search/?q=telegraph&i=22058
Copyright 2016-2018 by Aaron Parecki
Available under the Apache 2.0 license. See LICENSE.