PHP code example of incraigulous / contentful-laravel

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

    

incraigulous / contentful-laravel example snippets

``
php artisan vendor:publish
``
$result = Contentful::entries()
				->limitByType('CONTENT TYPE ID')
				->where('fields.title', 'match', 'campus')
				->limit(10)
				->get();
``
php artisan contentful:create-webhook
``
php artisan contentful:create-webhook  --url='http://www.myurl.com/webhook'
``
php artisan contentful:listen

OR

php artisan contentful:listen --url='http://www.myurl.com/webhook'