Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.0.0: KaririCode Sanitizer - Initial Stable Release #2

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

growthcodeoficial
Copy link
Contributor

This pull request marks the initial stable release (v1.0.0) of the KaririCode Sanitizer component. The Sanitizer provides a robust and flexible solution for data sanitization in PHP applications, integrating seamlessly with the KaririCode Framework ecosystem.

Key Features:

  • Comprehensive set of built-in sanitizers for common use cases
  • Flexible attribute-based sanitization for object properties
  • Easy integration with other KaririCode components
  • Configurable processors for customized sanitization logic
  • Support for PHP 8.3+

- Enhance Sanitizer class to catch PropertyInspectionException
- Update SanitizerTest to reflect new error handling behavior
- Add comprehensive test suite for Sanitize attribute
- Ensure 100% test coverage with strong typing for all components
- Adjust AttributeHandler to properly handle processor exceptions
…, and security modules

- Removed legacy cleaner classes: EmailAddressCleaner, NumericValueCleaner, UrlAddressCleaner
- Removed HtmlTagRemover, WhitespaceRemover, and HtmlSpecialCharsEncoder
- Added new domain-level sanitizers: HtmlPurifierSanitizer, JsonSanitizer, and MarkdownSanitizer
- Reorganized and added input sanitizers: HtmlSpecialCharsSanitizer, NormalizeLineBreaksSanitizer, StripTagsSanitizer (renamed from HtmlPurifier), TrimSanitizer
- Added new security sanitizers: FilenameSanitizer, SqlInjectionSanitizer, XssSanitizer (moved to security module)
- Updated and added corresponding test cases for all new and renamed sanitizers
- Removed outdated test files for the deleted processors
- Modified tests/application.php for compatibility with the new processor structure
- Add UserProfile, UserPreferences, UserAvatar, and UserSearch classes
- Implement various sanitizer processors for different data types
- Create displayValues function for showing original and sanitized data
- Set up ProcessorRegistry with all available sanitizers
- Demonstrate sanitization on potentially unsafe input data
…tions

- Create detailed English README with complete component overview
- Add Portuguese (Brazil) translation of the README
- Include examples using "Walmir Silva" for consistency
- Highlight integration with other KaririCode components
- Add sections on available sanitizers, development setup, and community support
- Ensure both versions (EN and PT-BR) are consistent and up-to-date
@growthcodeoficial growthcodeoficial merged commit e31c403 into main Oct 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant