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
This commit is contained in:
Younes ENNAJI
2026-03-29 23:07:04 +01:00
parent 2bf87f7ae9
commit 881468ac26
25 changed files with 31 additions and 27 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">
+5
View File
@@ -177,6 +177,11 @@ update_version() {
update_package_file "package.json" "$current_version" "$new_version" update_package_file "package.json" "$current_version" "$new_version"
fi 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 -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,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