Skip to content

Commit 6265a6a

Browse files
authored
Merge pull request #18 from yCodeTech/release/3.2.0
Release v3.2.0
2 parents eac423f + 7e6e0f5 commit 6265a6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2423
-15081
lines changed

CHANGELOG.md

Lines changed: 330 additions & 1 deletion
Large diffs are not rendered by default.

README.md

Lines changed: 61 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ composer global require ycodetech/valet-windows
101101
<tr>
102102
<th></th>
103103
<td></td>
104-
<td><a href="#xdebuginstall">xdebug:install</a></td>
104+
<td><a href="#phpproxy">php|php:proxy</a></td>
105105
<td align="center"><a href="#unsecure">unsecure</a></td>
106106
<td align="center"><a href="#proxy">proxy</a></td>
107107
<td></td>
@@ -112,7 +112,7 @@ composer global require ycodetech/valet-windows
112112
<tr>
113113
<th></th>
114114
<td></td>
115-
<td><a href="#xdebuguninstall">xdebug:uninstall</a></td>
115+
<td><a href="#xdebuginstall">xdebug:install</a></td>
116116
<td></td>
117117
<td align="center"><a href="#proxies">proxies</a></td>
118118
<td></td>
@@ -122,7 +122,7 @@ composer global require ycodetech/valet-windows
122122
<tr>
123123
<th></th>
124124
<td></td>
125-
<td></td>
125+
<td><a href="#xdebuguninstall">xdebug:uninstall</a></td>
126126
<td></td>
127127
<td align="center"><a href="#unproxy">unproxy</a></td>
128128
<td></td>
@@ -155,9 +155,6 @@ Valet ships with and installs these services:
155155
| Service | Version |
156156
| ----------------------------------------------------------------------------: | ------- |
157157
| [Acrylic DNS Proxy](https://mayakron.altervista.org/support/acrylic/Home.htm) | 2.1.0 |
158-
| [Ansicon](https://github.com/adoxa/ansicon) | 1.89 |
159-
| [gsudo](https://github.com/gerardog/gsudo) | 2.0.10 |
160-
| [nginx](https://nginx.org/) | 1.19.5 |
161158
| [ngrok](https://ngrok.com/) | 3.3.1 |
162159

163160
> [!IMPORTANT]
@@ -169,6 +166,21 @@ Valet ships with and installs these services:
169166
>
170167
> For both commands, valet automatically appends the config file location as a flag to the command, so ngrok will already know where the config file is.
171168
169+
As of v3.2.0, Valet no longer ships with the executables for the following services, instead they will be downloaded and installed automatically from GitHub's API. This is so that the latest versions with bug fixes and security updates can be installed.
170+
171+
| Service | Latest Version as of 13/05/2025 |
172+
| ------------------------------------------: | ------------------------------- |
173+
| [Ansicon](https://github.com/adoxa/ansicon) | 1.89 |
174+
| [gsudo](https://github.com/gerardog/gsudo) | 2.6.0 |
175+
| [nginx](https://nginx.org/) | 1.28.0 |
176+
| [WinSW](https://github.com/winsw/winsw) | 2.12.0 |
177+
178+
> [!IMPORTANT]
179+
>
180+
> `nginx` has changed some of the config options in v1.25.1, due to this, valet will run a site config check to detect if any of the site.conf needs upgrading. Valet will then automatically remove any of the old conf files and re-isolate/re-secure the sites with the updated configurations.
181+
>
182+
> Theses upgrades are only for `http2` and `http2_push_preload` options. Any future changes from `nginx` will be need to be upgraded in Valet internally as and when they arise, please submit an [issue](https://github.com/yCodeTech/valet-windows/issues/new?template=nginx-config-upgrade.md).
183+
172184
## Installation
173185

174186
Before installation, make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80. If XAMPP or similar is installed make sure they don't have Windows services installed and change their ports.
@@ -500,10 +512,43 @@ php:which Determine which PHP version the current working directory is u
500512
```console
501513
$ valet php:which
502514
The current working directory site1 is using PHP 7.4.33 (isolated)
515+
The executable is located at: C:/php/7.4/php.exe
503516

504517
$ valet php:which site2
505518
The specified site site2 is using PHP 8.1.8 (default)
519+
The executable is located at: C:/php/8.1/php.exe
520+
```
521+
522+
<img align="center" src="./The_same_icon.svg" style="width:20px;"> This command is the same as the Mac version, just renamed.
523+
524+
##### php:proxy
525+
506526
```
527+
php:proxy Proxy PHP commands with a site's PHP executable
528+
phpCommand Command to run with the site's PHP executable
529+
[--site=] Optionally, specify a site instead of the current working directory
530+
```
531+
532+
`php` is a command alias.
533+
534+
```console
535+
$ valet php:proxy -v
536+
537+
Proxying the command to PHP 8.2.9 at C:/php/8.2/php.exe
538+
539+
PHP 8.2.9 (cli) (built: Aug 1 2023 12:41:16) (NTS Visual C++ 2019 x64)
540+
Copyright (c) The PHP Group
541+
Zend Engine v4.2.9, Copyright (c) Zend Technologies
542+
543+
544+
$ valet php:proxy -r "echo 'Hello';" --site=site2
545+
546+
Proxying the command to PHP 7.4.9 c:/php/7.4/php.exe
547+
548+
Hello
549+
```
550+
551+
<img align="center" src="./The_same_icon.svg" style="width:20px;"> This command is the same as the Mac version.
507552

508553
##### xdebug:install
509554

@@ -1432,15 +1477,16 @@ Commands that have been tested and made parity:
14321477
- [x] link
14331478
- [x] links
14341479
- [x] log
1435-
- [ ] loopback - not applicable
1480+
- [ ] loopback (the localhost IP) - not applicable
14361481
- [x] on-latest-version
14371482
- [x] open
14381483
- [x] park
14391484
- [x] parked
14401485
- [x] paths
1441-
- [ ] php (proxying commands to PHP CLI) - Possible far future feature?
1486+
- [x] php (proxying commands to PHP CLI) - renamed to `php:proxy` with alias of `php`
14421487
- [x] proxies
14431488
- [x] proxy
1489+
- [ ] renew (Renews all domains with a trusted TLS certificate) - TBD
14441490
- [x] restart
14451491
- [x] secure
14461492
- [x] secured
@@ -1479,9 +1525,9 @@ The `install` command confirmation question about uninstalling the outdated cret
14791525
Doesn't affect valet functionality.
14801526
14811527
</td>
1482-
<td>3.1.0</td>
1483-
<td>3.2.0</td>
1484-
<td>&#x2717;</td>
1528+
<td align="center">3.1.0</td>
1529+
<td align="center">3.2.0</td>
1530+
<td align="center">&#x2713;</td>
14851531
</tr>
14861532
<table>
14871533
<!--
@@ -1536,9 +1582,13 @@ Upon installation, Valet creates the following directories and config files:
15361582

15371583
- `~/.config/valet/Services`
15381584
Contains the Nginx and PHP config and executable files to be able to run them as Windows services. These files are rebuilt when running the `install` command.
1585+
15391586
- `~/.config/valet/Sites`
15401587
Contains all of the symbolic links for any `link`ed sites.
15411588

1589+
- `~/.config/valet/stubs`
1590+
A user-created directory to contain custom stubs. Only used in Valet if it exists, and overrides Valet's internal stubs.
1591+
15421592
- `~/.config/valet/Xdebug`
15431593
Contains the output files of Xdebug profiling.
15441594

bin/ansicon/ANSI32.dll

-45.5 KB
Binary file not shown.

bin/ansicon/ANSI64.dll

-57 KB
Binary file not shown.

bin/ansicon/LICENSE.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

bin/ansicon/ansicon.exe

-16 KB
Binary file not shown.

0 commit comments

Comments
 (0)