1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00
Commit Graph

48 Commits

Author SHA1 Message Date
Dries Vints
e405aa2a42 Update composer.json 2023-02-20 09:20:18 +01:00
Matt Stauffer
d80182b464 Add Pint locally and run it 2023-02-13 15:40:49 -05:00
Matt Stauffer
5c7b2d313a Add support for .valetrc (#1347)
* Add .valetrc support

* Apply fixes from StyleCI

* wip

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-18 20:44:51 -05:00
Matt Stauffer
303462ffd1 Add Expose support, drop ngrok binary and move it to be managed by Brew, drop copying ngrok share URL to clipbaord
* Extract basic driver with public/ from basic driver, and simplify both

* Apply fixes from StyleCI

* Set HTTP_HOST in BaseDriverTest

* Move server helpers to their own file; add type hints

* Update drivers location and loading

- Extract much of server.php into a `Server` class
- Move all but the Laravel and Basic drivers into a subfolder
- Load all but the Laravel and Basic drivers via glob
- Add `beforeLoading` hook to simplify the `frontControllerPath` method for some drivers

* Apply fixes from StyleCI

* Add additional notes to upgrade.md

* Apply fixes from StyleCI

* Require PHP 8.0

* Add type hints and return type hints to Brew

* Apply fixes from StyleCI

* Add type hints and return type hints to CommandLine

* Add type hints and return type hints to Configuration

* Add type hints and return type hints to Diagnose

* Apply fixes from StyleCI

* Add type hints and return type hints to DnsMasq

* Add type hints and return hints to Filesystem

* Add type hints and return types to Nginx

* Add type hints and return types to ngrok

* Add type hints and return types to PhpFpm

* Apply fixes from StyleCI

* Add type hints and return types to Site and Valet

* Apply fixes from StyleCI

* Require passing a version number to isolate command

* Apply fixes from StyleCI

* Bump compat to php 8; add type hints and return types to helpers

* Apply fixes from StyleCI

* Use constructor promotion

* Apply fixes from StyleCI

* Write tests for Server.php

* Apply fixes from StyleCI

* Move upgrade calls into Upgrader class, and add upgrade to check for old custom drivers

* Apply fixes from StyleCI

* Replace some \n with PHP_EOL; move custom drivers into Custom namespace

* Apply fixes from StyleCI

* Add doc blocks

* Clean up NullWriter; drop legacy config check

* Allow null response from frontControllerPath

* Apply fixes from StyleCI

* Drop exits, fix 404 path

* Better handle new installations

* Apply fixes from StyleCI

* Drop extensions

* Clean up DX for fetch-share-url

* Apply fixes from StyleCI

* Fix site::unlink method signature and docblock

* Tweak the wording for the which command

* Support isolated sites running PHP 7.4

* Add a bunch more CLI command tests (#1332)

* Wip some cli tests

* Apply fixes from StyleCI

* Test parked command

* Test forget command

* Update Filesystem::rmDirAndContents to respect symlinks

* Wip cli commands

* Apply fixes from StyleCI

* Test link command, unlink command, and secure command

* Apply fixes from StyleCI

* Add tests for unsecure, unsecure --all, secured commands

Add placeholders for the remaining CLI commands
Add nginx::restart to unsecure --all command

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Drop old config migrations

* Add status command (#1329)

* Build the foundation of a status command

* Apply fixes from StyleCI

* Wip testing status command

* Apply fixes from StyleCI

* Fix status test

* Apply fixes from StyleCI

* Fix race condition in creating test config file

* Apply fixes from StyleCI

* Reset container for each test

* Differentiate response code based on success or failure of status command

* Apply fixes from StyleCI

* Add the ability to test if a Brew service is running

* Apply fixes from StyleCI

* Check for more services running in status command

* Apply fixes from StyleCI

* Test Status

* Apply fixes from StyleCI

* Drop Yoast from base application test case

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Test most of the remaining CLI commands

* Test set tld command

* Test set loopback command

* Test proxy, unproxy, and proxies commands

* Apply fixes from StyleCI

* Test which command

* Test diagnose command

* Test directory-listing and which-php commands

* Text isolate and unisolate and isolated commands

* Apply fixes from StyleCI

* Test trust command

* Apply fixes from StyleCI

* Test on-latest-version command

* Move uninstall text to a class, and tweak text and presentation

* Apply fixes from StyleCI

* Test use command

* Test stop command

* Test start command

* Test restart command

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Drop unnecessary doc blocks (#1339)

* Drop unnecessary doc blocks

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>

* Tweak status output and install output

* Add debug instructions to valet status, expand "valet installed" status check

* Drop extensions directory

* Apply fixes from StyleCI

* Remove more docblocks

* Upgrade ngrok to 3.1.0

* Test force uninstall command

* Test log command

* Drop copying Ngrok share to clipboard; add first steps of Expose code

* Add logic paths for Expose vs. ngrok and the share-tool config

* Apply fixes from StyleCI

* Take the first steps of manually installing ngrok and expose when needed

* Apply fixes from StyleCI

* Next steps Brew-installed ngrok

* Apply fixes from StyleCI

* Add class to represent Composer; continue ngrok + expose updates

* Apply fixes from StyleCI

* Add ensureInstalled() method to Expose and installOrFail() to Composer

* Apply fixes from StyleCI

* Require global PHP 8+ to install

* Exit if invalid domain is passed to valet share

* Update Composer dependencies to use Illuminate/Container

* Drop the idea of passing a custom domain to valet share

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-13 21:34:37 -05:00
Matt Stauffer
1684068382 Refactor where legacy drivers are pulled in 2022-12-08 12:45:26 -05:00
Matt Stauffer
cd05ded9b5 Add legacy drivers for the remainder of v3 2022-12-07 16:10:48 -05:00
Matt Stauffer
35998a0f86 Move test file autoloading to autoload-dev 2022-12-06 16:29:02 -05:00
Matt Stauffer
b53b821b90 Increase possible matches for EventDispatcher 2022-12-02 22:34:14 -05:00
Matt Stauffer
e247533a09 Handle old custom Valet drivers 2022-12-02 22:32:13 -05:00
Matt Stauffer
ee68152c2f Add Matt Stauffer to authors list 2022-12-02 21:35:14 -05:00
Matt Stauffer
711e3dd2ba Move all drivers to PSR autoload, and write tests 2022-12-02 21:15:15 -05:00
Matt Stauffer
04b14cf9d1 Call writer() in lifecycle hook
Thanks to @dragoonis, we were able to simplify the calls to writer() down to a single lifecycle hook.

Co-Authored-By: Jacob Baker-Kretzmar <bakerkretzmar@users.noreply.github.com>
Co-Authored-By: Andy Newhouse <hi@andymnewhouse.me>
Co-Authored-By: Tony Messias <tonyzrp@gmail.com>
2022-12-02 13:02:14 -05:00
Dries Vints
a0e1e02a47 Test Valet commands (#1256)
* First attempt at testing CLI commands

* Apply fixes from StyleCI

* Protect from running locally

* Fix test

* wip

* wip

* wip

* wip

* wip

* Update app.php

* Create config folder and files for CLI tests

* Apply fixes from StyleCI

* Fix some formatting

* Fix imports

* Update all output() calls to use the writer passed in by the command

Ugly capture of all $outputs from commands, by passing them into `writer()` to be bound into the container, where they can then be pulled out from calls to `output()` and its buddies `info()`, `table()`, and `warning()`.

* Apply fixes from StyleCI

* Flesh out park command test

* Apply fixes from StyleCI

* Drop php 7.0 and 7.1

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Matt Stauffer <matt@tighten.co>
2022-12-02 09:32:28 +01:00
Matt Stauffer
eefc06b07f Drop PHP 5.6; extract site-specific PHP version isolation to its own commands 2022-03-12 00:05:51 -05:00
Dries Vints
4da39fc4f8 Laravel 9 support (#1181)
* Laravel 9 support

* Try out Laravel 9

* wip

* Revert "Try out Laravel 9"

This reverts commit 44074c2de4.

* Revert dev stability
2022-01-31 09:51:32 +01:00
Bram Ceulemans
f401b2c511 Add wider guzzle versions 2021-12-20 16:55:29 +01:00
Bram Ceulemans
4c98f63b96 Replace HTTPFul with Guzzle 2021-12-20 16:49:06 +01:00
Dries Vints
a9bbf2035b Update constraints 2021-12-06 12:53:13 +01:00
Chris Brown
0b341a7ca1 Update test suite to phpunit 9.5
Update test suite to phpunit 9.5 syntax
Refactored to use polyfill for older PHP versions via `yoast/phpunit-polyfills`

Note: this includes 2 important differences from usual phpunit test suites:
- instead of extending `PHPUnit\Framework\TestCase` we extend `Yoast\PHPUnitPolyfills\TestCases\TestCase`
- instead of handling fixtures via `setUp()` and `tearDown()` we use `set_up()` and `tear_down()` respectively

Comment regarding formatting: I chose to use the FQDN in the `extends` syntax of the class declaration instead of using `use` so that it is more quickly apparent that we're doing something slightly different than usual phpunit syntax, particularly in regards to the set_up() / tear_down() methods that appear immediately following the `extends` line.
2020-11-29 12:10:05 -05:00
Chris Brown
32d1cb0fb3 Support Illuminate 8.0 2020-09-08 17:14:48 -04:00
Beau Simensen
46cdf1a155 Alias dev-master to 2.x-dev 2020-05-07 08:04:57 -05:00
Nathan Esayeas
e65d4c4905 chore: allow support for tightenco/collect:^7.0 2020-04-12 13:40:36 -04:00
Andrew Ellis
b5f71e03eb chore(deps): allow laravel/container:^7.0 2020-03-12 19:48:28 -06:00
Chris Brown
b8cd17ed98 Drop unnecessary symfony/process 2.x support
Since we require PHP > 5.6 there's no need to support symfony/process 2.x 

However, symfony/process 4.x requires minimum PHP 7.1 so have to retain 3.x for now if we wish to support PHP 7.0 or older without complications.
2019-11-30 16:10:22 -05:00
Chris Brown
d80d599ba5 Allow support for symfony/process 5.0 2019-11-28 14:30:24 -05:00
Matt Stauffer
08321af135 Merge pull request #816 from drbyte/6-dot-0
Add compatibility with global illuminate 6.0 pkgs
2019-09-09 08:26:06 -04:00
Chris Brown
9f80751a59 Testing 7.4 2019-09-08 10:07:01 -04:00
Chris Brown
e814cfc49a Add compatibility with illuminate 6.0 pkgs 2019-09-08 09:22:10 -04:00
Chris Brown
9402fd25ab Add compatibility with symfony/process v4 2017-12-23 00:08:12 -05:00
Tom Harris
44b380d9ab Bump version constraint on titenco/collect package 2017-08-24 12:12:02 +01:00
Cretu Eusebiu
2ed59d15ba Lock phpunit version 2017-02-16 18:42:55 +02:00
Chris Brown
e208ca2340 Update minimum PHP requirement to 5.6
... because it's not actually compatible with 5.5 anymore - Ref: https://github.com/laravel/valet/issues/279
2016-12-27 15:58:16 -05:00
Vincent Klaiber
ca86fb5dd4 Update Taylors email
Switched from gmail to laravel.com
2016-09-17 20:37:24 +02:00
Glendon Solsberry
e714082d50 Allows Valet to run under PHP 5.5 (#57)
* Allows for valet to run under PHP 5.5 as well.

Add checks for php55 to the mix.

* Allows for valet to run under PHP 5.5 as well.

Add checks for php55 to the mix.

* Update .travis.yml

* Update PhpFpm.php

* Add tests for php55
2016-05-10 21:56:25 -05:00
Taylor Otwell
97f7ae2342 organize better 2016-05-10 08:29:24 -05:00
Taylor Otwell
0df4108ea2 move files 2016-05-08 23:14:53 -05:00
Taylor Otwell
075443b763 refactor and tests 2016-05-08 23:04:16 -05:00
Taylor Otwell
354e1d4111 progress refactoring 2016-05-07 22:10:32 -05:00
Taylor Otwell
9f4896399e extract helper into autoloaded file 2016-05-07 12:19:51 -05:00
Taylor Otwell
7d8a3e47a6 loosen requirements 2016-05-05 14:29:42 -05:00
Taylor Otwell
25baa09b48 update keywords 2016-05-05 09:43:17 -05:00
Taylor Otwell
bbddc0d4f9 loosen requirementsS 2016-05-04 21:24:58 -05:00
Taylor Otwell
363d85bece share feature 2016-05-04 13:21:32 -05:00
Taylor Otwell
8eaf767bbb adding commands 2016-05-04 10:17:14 -05:00
Taylor Otwell
66254d76ff update name 2016-05-03 19:54:32 -05:00
Taylor Otwell
c16391fe01 fix deps 2016-05-03 16:36:46 -05:00
Taylor Otwell
abfe227927 update composer json 2016-05-03 16:07:25 -05:00
Taylor Otwell
0e2f3f4fe3 first 2016-05-03 16:03:24 -05:00