Compare commits

...

2 Commits

Author SHA1 Message Date
Younes ENNAJI 881468ac26 Fix documentation issues: outdated CDN versions, LICENSE years, and broken links
- Update CDN references from @2.2.0 to @2.5.1 in docs/pages/javascript.md
- Fix LICENSE badge link in README.md to point to correct repo (php-flasher/php-flasher)
- Update copyright year to 2024-present across all 16 LICENSE files
- Fix docs/package.json version from 2.1.0 to 2.5.1
- Update sub-package READMEs to reference PHPFlasher ^2.5.1
- Add docs/package.json to bin/bump update targets
- Remove commented-out dead code in ResponseExtension.php
2026-03-29 23:07:04 +01:00
Younes ENNAJI 2bf87f7ae9 Remove unused paragonie/random_compat dependency and fix version bump script
- Remove paragonie/random_compat from composer.json require (PHP 5 polyfill, unnecessary on PHP 8.2+)
- Fix bin/bump to also update root package.json version (was only updating src/ files)
- Fix root package.json version from 2.1.5 to 2.5.1
2026-03-29 22:56:57 +01:00
28 changed files with 48 additions and 43 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -22,7 +22,7 @@
<a href="https://github.com/php-flasher/php-flasher"><img src="https://img.shields.io/github/stars/php-flasher/php-flasher.svg?style=flat-square&label=stars" alt="Stars"></a> <a href="https://github.com/php-flasher/php-flasher"><img src="https://img.shields.io/github/stars/php-flasher/php-flasher.svg?style=flat-square&label=stars" alt="Stars"></a>
<a href="https://github.com/php-flasher/php-flasher/releases"><img src="https://img.shields.io/github/v/release/php-flasher/flasher.svg?style=flat-square" alt="Release"></a> <a href="https://github.com/php-flasher/php-flasher/releases"><img src="https://img.shields.io/github/v/release/php-flasher/flasher.svg?style=flat-square" alt="Release"></a>
<a href="https://packagist.org/packages/php-flasher/flasher"><img src="https://img.shields.io/packagist/php-v/php-flasher/flasher.svg?style=flat-square" alt="PHP Version"></a> <a href="https://packagist.org/packages/php-flasher/flasher"><img src="https://img.shields.io/packagist/php-v/php-flasher/flasher.svg?style=flat-square" alt="PHP Version"></a>
<a href="https://github.com/php-flasher/flasher/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a> <a href="https://github.com/php-flasher/php-flasher/blob/2.x/LICENSE"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
</p> </p>
<p align="center"> <p align="center">
+10
View File
@@ -172,6 +172,16 @@ update_version() {
update_package_file "$file" "$current_version" "$new_version" update_package_file "$file" "$current_version" "$new_version"
done done
# Update root package.json
if [ -f "package.json" ]; then
update_package_file "package.json" "$current_version" "$new_version"
fi
# Update docs package.json
if [ -f "docs/package.json" ]; then
update_package_file "docs/package.json" "$current_version" "$new_version"
fi
echo -e "\n ${SUCCESS} Version bump complete!\n" echo -e "\n ${SUCCESS} Version bump complete!\n"
} }
-1
View File
@@ -27,7 +27,6 @@
"illuminate/support": "^11.0|^12.0|^13.0", "illuminate/support": "^11.0|^12.0|^13.0",
"laravel/octane": "^2.3", "laravel/octane": "^2.3",
"livewire/livewire": "^3.0", "livewire/livewire": "^3.0",
"paragonie/random_compat": "^2.0",
"psr/container": "^1.1|^2.0", "psr/container": "^1.1|^2.0",
"symfony/config": "^7.0|^8.0", "symfony/config": "^7.0|^8.0",
"symfony/console": "^7.0|^8.0", "symfony/console": "^7.0|^8.0",
Generated
+11 -14
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "75c6ad2f4921d2b29ebfc9c3e2a067be", "content-hash": "bae119fc55afe5c607e35e693f3e8c59",
"packages": [ "packages": [
{ {
"name": "brick/math", "name": "brick/math",
@@ -2624,33 +2624,29 @@
}, },
{ {
"name": "paragonie/random_compat", "name": "paragonie/random_compat",
"version": "v2.0.0", "version": "v9.99.100",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/paragonie/random_compat.git", "url": "https://github.com/paragonie/random_compat.git",
"reference": "321a59fed499a5624b0e40cb5c824ae6116e0c18" "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/321a59fed499a5624b0e40cb5c824ae6116e0c18", "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a",
"reference": "321a59fed499a5624b0e40cb5c824ae6116e0c18", "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.2.0" "php": ">= 7"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "4.*|5.*" "phpunit/phpunit": "4.*|5.*",
"vimeo/psalm": "^1"
}, },
"suggest": { "suggest": {
"ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
}, },
"type": "library", "type": "library",
"autoload": {
"files": [
"lib/random.php"
]
},
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
"MIT" "MIT"
@@ -2665,6 +2661,7 @@
"description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
"keywords": [ "keywords": [
"csprng", "csprng",
"polyfill",
"pseudorandom", "pseudorandom",
"random" "random"
], ],
@@ -2673,7 +2670,7 @@
"issues": "https://github.com/paragonie/random_compat/issues", "issues": "https://github.com/paragonie/random_compat/issues",
"source": "https://github.com/paragonie/random_compat" "source": "https://github.com/paragonie/random_compat"
}, },
"time": "2016-03-18T17:17:33+00:00" "time": "2020-10-15T08:29:30+00:00"
}, },
{ {
"name": "phpoption/phpoption", "name": "phpoption/phpoption",
@@ -11389,7 +11386,7 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"stability-flags": {}, "stability-flags": {},
"prefer-stable": true, "prefer-stable": true,
"prefer-lowest": true, "prefer-lowest": false,
"platform": { "platform": {
"php": ">=8.2", "php": ">=8.2",
"ext-intl": "*" "ext-intl": "*"
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@flasher/docs", "name": "@flasher/docs",
"version": "2.1.0", "version": "2.5.1",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "cross-env NODE_ENV=production encore production --progress", "build": "cross-env NODE_ENV=production encore production --progress",
+4 -4
View File
@@ -26,7 +26,7 @@ To pull in the <strong><span class="text-indigo-900">PHP<span class="text-indigo
</span> </span>
```html ```html
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.2.0/dist/flasher.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.5.1/dist/flasher.min.js"></script>
``` ```
--- ---
@@ -55,7 +55,7 @@ flasher.info("Welcome back");
or if you are using a cdn like this: or if you are using a cdn like this:
```html ```html
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.2.0/dist/flasher.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.5.1/dist/flasher.min.js"></script>
<script> <script>
flasher.error("Oops! Something went wrong!"); flasher.error("Oops! Something went wrong!");
flasher.warning("Are you sure you want to proceed ?"); flasher.warning("Are you sure you want to proceed ?");
@@ -72,8 +72,8 @@ First grab the CDN for any js library adapter supported by <strong><span class="
and then call the `create()` method on flasher object : and then call the `create()` method on flasher object :
```html ```html
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.2.0/dist/flasher.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher@2.5.1/dist/flasher.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@2.2.0/dist/flasher-toastr.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/@flasher/flasher-toastr@2.5.1/dist/flasher-toastr.min.js"></script>
<script> <script>
const factory = flasher.use('toastr'); const factory = flasher.use('toastr');
factory.error("Oops! Something went wrong!"); factory.error("Oops! Something went wrong!");
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@flasher/php-flasher", "name": "@flasher/php-flasher",
"type": "module", "type": "module",
"version": "2.1.5", "version": "2.5.1",
"description": "A powerful and flexible flash notification system for PHP applications", "description": "A powerful and flexible flash notification system for PHP applications",
"license": "MIT", "license": "MIT",
"author": "Younes ENNAJI <younes.ennaji.pro@gmail.com>", "author": "Younes ENNAJI <younes.ennaji.pro@gmail.com>",
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -9,7 +9,7 @@ Noty adapter for PHPFlasher. Feature-rich notification library with queue suppor
## Requirements ## Requirements
- PHP >= 8.2 - PHP >= 8.2
- PHPFlasher ^2.4.0 - PHPFlasher ^2.5.1
## Installation ## Installation
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -9,7 +9,7 @@ Notyf adapter for PHPFlasher. Lightweight and modern toast notifications.
## Requirements ## Requirements
- PHP >= 8.2 - PHP >= 8.2
- PHPFlasher ^2.4.0 - PHPFlasher ^2.5.1
## Installation ## Installation
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
-1
View File
@@ -64,7 +64,6 @@ final readonly class ResponseExtension implements ResponseExtensionInterface
$htmlResponse = \sprintf('options.push(%s);', $htmlResponse); $htmlResponse = \sprintf('options.push(%s);', $htmlResponse);
} }
// $htmlResponse = "\n".str_replace("\n", '', (string) $htmlResponse)."\n";
$htmlResponse .= "\n"; $htmlResponse .= "\n";
$content = substr($content, 0, $insertPosition).$htmlResponse.substr($content, $insertPosition); $content = substr($content, 0, $insertPosition).$htmlResponse.substr($content, $insertPosition);
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -9,7 +9,7 @@ SweetAlert2 adapter for PHPFlasher. Beautiful alert dialogs with modal and toast
## Requirements ## Requirements
- PHP >= 8.2 - PHP >= 8.2
- PHPFlasher ^2.4.0 - PHPFlasher ^2.5.1
## Installation ## Installation
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+1 -1
View File
@@ -9,7 +9,7 @@ Toastr adapter for PHPFlasher. Elegant toast notifications with full TypeScript
## Requirements ## Requirements
- PHP >= 8.2 - PHP >= 8.2
- PHPFlasher ^2.4.0 - PHPFlasher ^2.5.1
## Installation ## Installation
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2024 PHPFlasher Copyright (c) 2024-present PHPFlasher
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal