- Implemented SecurityTest to validate token generation, CSRF protection, input sanitization, and rate limiting. - Created UserModelTest to ensure correct database operations for user management, including creation, updating, banning, and fetching active users. - Developed ValidationTest to verify input validation and sanitization for user IDs, nicknames, messages, and API requests. - Introduced Security and Validation utility classes with methods for secure token generation, input sanitization, and comprehensive validation rules.
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"name": "dodgers/iptv-stream-web",
|
|
"description": "Real-time IPTV streaming application with chat",
|
|
"type": "project",
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Dodgers IPTV Team"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=8.1",
|
|
"ext-pdo": "*",
|
|
"ext-sqlite3": "*",
|
|
"ext-json": "*",
|
|
"ext-mbstring": "*"
|
|
},
|
|
"require-dev": {
|
|
"phpunit/phpunit": "^10.0",
|
|
"phpstan/phpstan": "^1.10"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"App\\": "app/",
|
|
"Controllers\\": "controllers/",
|
|
"Models\\": "models/",
|
|
"Services\\": "services/",
|
|
"Utils\\": "utils/",
|
|
"Middleware\\": "middleware/"
|
|
},
|
|
"files": [
|
|
"includes/Config.php",
|
|
"includes/Database.php",
|
|
"includes/autoloader.php",
|
|
"includes/ErrorHandler.php",
|
|
"utils/Security.php",
|
|
"utils/Validation.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Tests\\": "tests/"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"test": "phpunit",
|
|
"test:coverage": "phpunit --coverage-html=coverage",
|
|
"lint": "phpstan analyse --level=8 src",
|
|
"migrate": "php includes/migrate.php"
|
|
},
|
|
"config": {
|
|
"process-timeout": 0,
|
|
"sort-packages": true
|
|
}
|
|
}
|