🆙 Add cms i using 🆙

This commit is contained in:
Remco committed 2025-11-25 22:42:56 +01:00
1 parent 94704e0925
commit d44196149e
35591 files changed
+3601123

No files matched your search

@@ -0,0 +1,71 @@
name: Laravel Log Cleaner Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
laravel: [ '9.*', '10.*', '11.*', '12.*' ]
exclude:
# Laravel 11 requires PHP 8.2+
- php: '8.1'
laravel: '11.*'
# Laravel 12 requires PHP 8.2+
- php: '8.1'
laravel: '12.*'
name: P${{ matrix.php }} - L${{ matrix.laravel }}
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Create Laravel Project
run: |
composer create-project --prefer-dist laravel/laravel:${{ matrix.laravel }} test-app
cd test-app
composer require jiordiviera/laravel-log-cleaner
- name: Generate Log Files
run: |
cd test-app
php artisan tinker --execute="Log::info('Test log entry');"
php artisan tinker --execute="Log::error('Test error entry');"
- name: Run Log Cleaner
run: |
cd test-app
php artisan log:clear
- name: Check Log Files
run: |
cd test-app/storage/logs
if [ -s laravel.log ]; then
echo "Log file is not empty"
exit 1
else
echo "Log file is empty or does not exist"
fi
- name: Run Package Tests
run: vendor/bin/pest
@@ -0,0 +1,5 @@
vendor/
.phpunit.result.cache
.idea
.phpunit.cache/
composer.lock
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
# The license
Copyright (c) Jiordi Viera <jiordikengne@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,64 @@
# Security Policy
## Supported Versions
| Version | Supported |
| ------- | ------------------ |
| 1.x | :white_check_mark: |
## Reporting a Vulnerability
We take the security of Laravel Log Cleaner seriously. If you discover any security-related issues, please send an email to security@jiordiviera.dev instead of using the public issue tracker.
Please include the following information in your report:
- Type of issue (e.g., buffer overflow, SQL injection, cross-site scripting, etc.)
- Full paths of source file(s) related to the manifestation of the issue
- The location of the affected source code (tag/branch/commit or direct URL)
- Any special configuration required to reproduce the issue
- Step-by-step instructions to reproduce the issue
- Proof-of-concept or exploit code (if possible)
- Impact of the issue, including how an attacker might exploit it
### What to expect
- You will receive acknowledgement of your report within 48 hours
- We will try to keep you informed about our progress throughout the process
- After the initial reply to your report, the security team will endeavor to keep you informed of the progress towards a fix and full announcement
- You may be asked for additional information or guidance
### Security Update Process
- After receiving a security report, we will verify the issue and determine its severity
- If the issue is confirmed:
- We will develop and test a fix
- We will prepare a security advisory for our users
- The fix will be applied to the latest stable version and released
- After the release, the security advisory will be published
### Public Disclosure Process
- Security vulnerabilities must be disclosed privately and will be handled on a case-by-case basis
- Public disclosure of a vulnerability will happen after a fix has been released
- The timing of the public disclosure will be coordinated between the security team and the reporter
## Security Best Practices
When using Laravel Log Cleaner, please follow these security best practices:
1. Always keep your Laravel Log Cleaner package up to date with the latest version
2. Use appropriate file permissions on your log files
3. Configure log retention periods according to your compliance requirements
4. Regularly monitor log cleaning activities
5. Implement proper access controls to log directories
6. Use environment variables for sensitive configurations
## Dependencies
Laravel Log Cleaner is built on top of Laravel and follows Laravel's security policies and best practices. We regularly monitor our dependencies for security issues and update them as needed.
## Contact
For any questions regarding this security policy, please contact jiordikengne@gmail.com.
Thank you for helping keep Laravel Log Cleaner and its users safe!
@@ -0,0 +1,63 @@
{
"name": "jiordiviera/laravel-log-cleaner",
"description": "A Laravel package to easily clean the log files.",
"keywords": [
"laravel",
"log",
"cleaner",
"logging",
"log management",
"laravel package",
"maintenance",
"log files",
"artisan"
],
"license": "MIT",
"authors": [
{
"name": "Jiordi Viera",
"email": "[email protected]",
"role": "Owner",
"homepage": "https://github.com/jiordiviera"
}
],
"require": {
"php": "^8.1|^8.2|^8.3",
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
"illuminate/console": "^9.0|^10.0|^11.0|^12.0"
},
"require-dev": {
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
"pestphp/pest": "^1.23|^2.0|^3.0",
"pestphp/pest-plugin-laravel": "^1.4|^2.0|^3.0"
},
"autoload": {
"psr-4": {
"JiordiViera\\LaravelLogCleaner\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"JiordiViera\\LaravelLogCleaner\\Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage"
},
"extra": {
"laravel": {
"providers": [
"JiordiViera\\LaravelLogCleaner\\LaravelLogCleanerServiceProvider"
]
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
},
"sort-packages": true
}
}
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./app</directory>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</phpunit>
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace JiordiViera\LaravelLogCleaner;
use Illuminate\Support\ServiceProvider;
use JiordiViera\LaravelLogCleaner\Commands\ClearLogCommand;
class LaravelLogCleanerServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->commands([
ClearLogCommand::class
]);
}
public function boot(): void
{
}
}
@@ -0,0 +1,3 @@
<?php
uses(\JiordiViera\LaravelLogCleaner\Tests\TestCase::class)->in(__DIR__);
@@ -0,0 +1,15 @@
<?php
namespace JiordiViera\LaravelLogCleaner\Tests;
use JiordiViera\LaravelLogCleaner\LaravelLogCleanerServiceProvider;
use \Orchestra\Testbench\TestCase as OrchestraTestCase;
class TestCase extends OrchestraTestCase
{
protected function getPackageProviders($app): array
{
return [LaravelLogCleanerServiceProvider::class];
}
}