Weave Code
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

Security Laravel Package

artisanpack-ui/security

Core Laravel security toolkit for ArtisanPack UI: sanitization, escaping (Laminas Escaper), KSES filtering, validation rules, security/CSP middleware, CSP builder with nonce & reporting, rate limiting, audit/scan commands, and testing helpers.

View on GitHub
Deep Wiki
Context7

title: AI Guidelines for Security

AI Guidelines for Security

ArtisanPack UI Security Package

Primary Goal: To ensure that all generated code is secure by default and follows Laravel security best practices.

Core Principles for the AI:

  • Input Sanitization: Sanitize all data received from users or external sources to prevent common vulnerabilities.

  • Output Escaping: Escape all data before rendering it in the browser to prevent Cross-Site Scripting (XSS) attacks.

  • Secure by Default: Adhere to Laravel's built-in security features, such as CSRF protection and parameterized queries.

Specific Instructions for the AI:

  • When generating code that handles user input, use the appropriate sanitization functions from the Security class, such as sanitizeEmail, sanitizeText, and sanitizeInt.

  • When displaying user-generated content in Blade views, use the appropriate escaping functions, such as escHtml and escAttr, to prevent XSS attacks.

  • For all database interactions, use Laravel's Eloquent ORM or the query builder with parameterized queries to prevent SQL injection vulnerabilities.

  • When generating HTML forms, always include the [@csrf](https://github.com/csrf) Blade directive to protect against Cross-Site Request Forgery attacks.

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky