vite-plugin-php 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,11 +15,6 @@ export default defineConfig({
15
15
  });
16
16
  ```
17
17
 
18
- #### ⚠️ Attention!
19
-
20
- Since version `^1.0.0` the plugin uses PHP's dev-server to compute PHP code and to provide all usual server variables and features.\
21
- If you encounter a bug, use the prior `0.9.1` version of the plugin!
22
-
23
18
  ## Write some PHP code in your `index.php`
24
19
 
25
20
  ```php
@@ -66,6 +61,24 @@ Should you have multiple entry-points, you will be able to access each one accor
66
61
  | shop/index.php | `/shop/` `/shop/index.php` | `shop/index.php` |
67
62
  | ... | ... | ... |
68
63
 
64
+ **⚡️ New feature:** Wildcard selectors!\
65
+ Since version 1.0.6 you can specify wildcard entry points:
66
+
67
+ ```js
68
+ usePHP({
69
+ binary: '/opt/lampp/bin/php-8.1.10',
70
+ entry: [
71
+ 'index.php',
72
+ 'about.php',
73
+ 'contact.php',
74
+ 'pages/**/*.php',
75
+ 'partials/*.php',
76
+ ],
77
+ });
78
+ ```
79
+
80
+ These entries will also render according to the routing table above.
81
+
69
82
  ## Known issues
70
83
 
71
84
  Vite won't be able to process PHP-computed styles, scripts or images:
@@ -75,3 +88,12 @@ Vite won't be able to process PHP-computed styles, scripts or images:
75
88
  ```
76
89
 
77
90
  If you encounter any other bugs or need some other features feel free to open an [issue](https://github.com/donnikitos/vite-plugin-php/issues).
91
+
92
+ ## Support
93
+
94
+ Love open source? Enjoying my project?\
95
+ Your support can keep the momentum going! Consider a donation to fuel the creation of more innovative open source software.
96
+
97
+ | via Ko-Fi | Buy me a coffee | via PayPal |
98
+ | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
99
+ | [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y8Y2ALMG) | <a href="https://www.buymeacoffee.com/donnikitos" target="_blank"><img src="https://nititech.de/donate-buymeacoffee.png" alt="Buy Me A Coffee" width="174"></a> | <a href="https://www.paypal.com/donate/?hosted_button_id=EPXZPRTR7JHDW" target="_blank"><img src="https://nititech.de/donate-paypal.png" alt="PayPal" width="174"></a> |