PHP code example of tschucki / laravel-pr0gramm-api
1. Go to this page and download the library: Download tschucki/laravel-pr0gramm-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Tschucki\Pr0grammApi\Enums\Vote;
Pr0grammApi::Post()->vote(1, Vote::UP);
// Add comment to post with id 1
Pr0grammApi::Comment()->add(1, 'Das Ablecken von Türknöpfen ist auf anderen Planeten illegal.');
// Add comment to another comment
Pr0grammApi::Comment()->add(1, 'Ich bin ne gute Nudel', 22);
Pr0grammApi::Inbox()->comments();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.