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.
Aaron Parecki d993c7afc1 fix up http classes 9 years ago
controllers blacklist some known URLs that don't accept webmention 9 years ago
lib fix up http classes 9 years ago
migrations adds API route to handle Superfeedr payload 9 years ago
public attempt to disconnect and reconnect from the database between jobs 9 years ago
scripts fix path for script 9 years ago
tests fix up http classes 9 years ago
views blacklist some known URLs that don't accept webmention 9 years ago
.gitignore add template config 10 years ago
CONTRIBUTING.md add contributing.md 10 years ago
LICENSE Initial commit 10 years ago
README.md add beanstalk to dev instructions in readme 10 years ago
composer.json log input received from superfeedr 9 years ago
composer.lock log input received from superfeedr 9 years ago
config.template.php add template config 10 years ago
phpunit.xml beginning API 10 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