PHP code example of shahariarahmad / feedify

1. Go to this page and download the library: Download shahariarahmad/feedify 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/ */

    

shahariarahmad / feedify example snippets


use Feedify\Facades\Feedify;

Feedify::auth(fn ($request) => $request->user()?->can('manage-feeds'));

use Feedify\Facades\Feedify;

Feedify::useProductRepository(\App\Feedify\MyCatalogRepository::class);

use Feedify\Events\FeedGenerated;
use Feedify\Events\FeedGenerating;
use Feedify\Events\FeedFailed;

Event::listen(FeedGenerated::class, function ($event) {
    // Notify, upload to CDN, etc.
});
bash
php artisan feedify:publish
php artisan migrate
bash
php artisan feedify:seed-products
bash
php artisan vendor:publish --tag=feedify-config