You may want to run a minimal version of API Platform. This one file runs API Platform (without GraphQL, Eloquent, Doctrine MongoDB...). It requires the following Composer packages:
Note
This documentation is a work in progress we're working on improving it, in the mean time we declare most of the services manually in the ApiPlatformProvider it can be source of inspiration.
API Platform is installable as a set of components, for example:
composer require \
api-platform/serializer \
api-platform/metadata \
api-platform/state \
api-platform/jsonld \
phpdocumentor/reflection-docblock \
symfony/property-info \
symfony/routing \
symfony/validator