You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ryan Barrett 39e628d5b6 target_domain bug fix: require exact parent domain in subdomain check 8 years ago
controllers target_domain bug fix: require exact parent domain in subdomain check 8 years ago
lib move subdomain check into a function 8 years ago
public follow redirects when fetching HTTP requests 8 years ago
scripts follow redirects when fetching HTTP requests 8 years ago
tests target_domain bug fix: require exact parent domain in subdomain check 8 years ago
views fix target link on dashboard 8 years ago
.gitignore add template config 8 years ago
CONTRIBUTING.md add contributing.md 8 years ago
LICENSE Initial commit 8 years ago
README.md add beanstalk to dev instructions in readme 8 years ago
composer.json pretty-print JSON response 8 years ago
composer.lock pretty-print JSON response 8 years ago
config.template.php add template config 8 years ago
phpunit.xml beginning API 8 years ago
schema.sql add schema 8 years ago

README.md

Telegraph

Telegraph is an API for sending Webmentions.

API

See https://telegraph.p3k.io/api

Developing

  • 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] < schema.sql
    $ phpunit
    # Hack hack hack!
    

Credits

Telegraph photo: https://www.flickr.com/photos/nostri-imago/3407786186

Telegraph icon: https://thenounproject.com/search/?q=telegraph&i=22058