Skip to content

Generating entry classes with PHP #168

@robmellett

Description

Hi there,

I stumbled upon this blog post https://contentful.com/developers/docs/php/tutorials/generating-entry-classes-based-on-content-types-management-sdk/

I was following along the instructions and installed

composer require contentful/contentful-management
composer require --dev nikic/php-parser

However I receive the following error when running

php vendor/bin/contentful-management generate:entry-classes --access-token=$ACCESS_TOKEN --space-id=$SPACE_ID --environment-id=$ENVIRONMENT_ID --dir=$OUTPUT_DIR --namespace="App\\Entity"

Error
Could not open input file: vendor/bin/contentful-management

I was just wondering if it's still possible to generate Entities with this library?

Any suggestions would be much appreciated!

Thanks,
Rob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions