entimm / valet-windows

Laravel Valet for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Total Downloads Latest Stable Version License

Windows port of the popular development environment Laravel Valet.

Introduction

Valet is a Laravel development environment for Windows. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels. Yeah, we like it too.

Laravel Valet configures your Windows to always run Nginx in the background when your machine starts. Then, using Acrylic DNS, Valet proxies all requests on the *.dev domain to point to sites installed on your local machine.

Documentation

Before installation, make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80.
Also make sure to open your preferred terminal (CMD, Git Bash, PowerShell, etc.) as Administrator.

  • If you don't have PHP installed, open PowerShell (3.0+) as Administrator and run:
Set-ExecutionPolicy RemoteSigned; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php-installer.ps1" -OutFile $env:temp\php-installer.ps1; ."$env:temp\php-installer.ps1"

This script will download and install PHP 7.1 for you and add it to your environment Path variable. PowerShell is only required for installing PHP this way.

  • If you don't have Composer installed, make sure to install it.

  • Install Valet with Composer via composer global require cretueusebiu/valet-windows.

  • Run the valet install command. This will configure and install Valet and register Valet's daemon to launch when your system starts.

  • If you're installing on Windows 10, you may need to manually configure Windows to use the Acrylic DNS proxy.

Valet will automatically start its daemon each time your machine boots. There is no need to run valet start or valet install ever again once the initial Valet installation is complete.

For more please refer to the official documentation on the Laravel website.

Known Issues

  • HTTP/2 does not work with secured sites.
  • When sharing sites the url will not be copied to the clipboard.
  • You must run the valet commands from the drive where Valet is installed, except for park and link. See #12.

Changelog

Please see CHANGELOG for more information what has changed recently.

License

Laravel Valet is open-sourced software licensed under the MIT license.

About

Laravel Valet for Windows.

License:MIT License


Languages

Language:PHP 73.4%Language:Vim Script 23.3%Language:Perl 1.4%Language:PowerShell 0.9%Language:HTML 0.9%Language:Shell 0.1%Language:Batchfile 0.1%