php-symfony-api-platform-security
CommunitySecure API Platform with granular access.
AuthorLounisBou
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Securing API Platform resources in Symfony applications requires precise, expressive access control to protect data while enabling legitimate use. This skill provides a structured approach to enforce authentication and authorization across operations, ensuring only authorized users can read, modify, or delete resources.
Core Features & Use Cases
- Operation-level security: apply security expressions on Get, GetCollection, Post, Put, Patch, and Delete to enforce role-based access and ownership rules.
- Voters for complex logic: implement custom voters to handle nuanced permissions beyond built-in roles.
- Ownership and visibility: enforce resource visibility and actions based on the current user and resource relationships.
- JWT and role integration: combine JWT-based authentication with role checks to secure API endpoints across the stack.
- Use Case: protect a Post resource so only admins or the post owner can edit or delete, while everyone can read.
Quick Start
Configure a secure ApiResource with a security expression and a basic RBAC rule to see immediate access control.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: php-symfony-api-platform-security Download link: https://github.com/LounisBou/claude-code/archive/main.zip#php-symfony-api-platform-security Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.