Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Api Platform Toolkit Bundle Laravel Package

cyberspectrum/api-platform-toolkit-bundle

Symfony bundle adding API Platform toolkit features: enable custom ExpressionLanguage providers via tagged services, and optional LexikJWT helpers including Swagger/OpenAPI login endpoint docs and configurable default token TTL and login URL.

View on GitHub
Deep Wiki
Context7

api-platform toolkit

Installation

composer require cyberspectrum/api-platform-toolkit-bundle

Configuration

api_platform_toolkit:
  # Enable custom expression language providers
  enable_expression_language: true
  # Enable JWT handling - this can be disabled.
  lexik_jwt:
    # Enable documentation handling (adds the login endpoint to swagger docs).
    add_documentation: true
    # The default ttl if not specified in request (defaults to 3600)
    default_ttl: 3600
    # The login url.
    login_url: '/api/login_check'

Features:

Add own providers to expression language.

This bundle supports to add tagged services to the api platform expression language.

To add your own ExpressionFunctionProviderInterface implementor use this service registration:

App\ExpressionLanguage\SomeExpressionLanguageProvider:
    tags:
        - { name: csap_toolkit.security.expression_language }

TODO

  • Make PR for expression language support in api-platform/core.
  • Make JWT TTL support configuration optional.
  • Add min and max value support for JWT TTL.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator