Hello,
I’m a newbie to Contentful trying the php SDK. I created a test space in the contentful app with a bookstore model as suggested in your example.
I followed the SDK readme but when I run my index file I start with this error in the very beginning:
Fatal error: Cannot use Contentful\RichText\Node\ListItem as ListItem because the name is already in use in /Users/vpruefert/work/contentful/contentful.php/vendor/contentful/rich-text/src/NodeMapper/OrderedList.php on line 15
So it seems these two class names collide.
I did not used any rich text fields nor list items in my model, my index looks like this:
<?php
require_once 'vendor/autoload.php';
$client = new \Contentful\Delivery\Client(
'my_cda_access_token',
'my_space_id',
'test_bookstore'
);
As I said I’m totally new to this, maybe I’m missing a basic concept here.
Please help!
Volker