1. Go to this page and download the library: Download fewchurs/laravel 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/ */
fewchurs / laravel example snippets
use Fewchurs\Laravel\Facades\Fewchurs;
$page = Fewchurs::features()->top(limit: 20);
$page = Fewchurs::features()->latest(limit: 20, cursor: $page->nextCursor);
$feature = Fewchurs::features()->submit(
title: 'Add dark mode',
description: 'Would love a dark theme.',
email: auth()->user()?->email, // the server follows this email for you
);
Fewchurs::features()->vote($feature->id);
Fewchurs::features()->unvote($feature->id);
Fewchurs::features()->follow($feature->id, email: '[email protected]');
Fewchurs::comments()->list($feature->id, limit: 50);
Fewchurs::comments()->create($feature->id, text: '+1', authorName: 'Sam');
Fewchurs::config()->showBranding;