Giter Club home page Giter Club logo

valet-windows's Introduction

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 *.test 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:
# PHP 7.4
Set-ExecutionPolicy RemoteSigned; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php74.ps1" -OutFile $env:temp\php74.ps1; .$env:temp\php74.ps1

# PHP 7.3
Set-ExecutionPolicy RemoteSigned; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri "https://github.com/cretueusebiu/valet-windows/raw/master/bin/php73.ps1" -OutFile $env:temp\php73.ps1; .$env:temp\php73.ps1

This script will download and install PHP for you and add it to your environment path variable. PowerShell is only required for this step.

  • 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

  • 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.
  • If your machine is not connected to the internet you'll have to manually add the domains in your hosts file or you can install the "Microsoft Loopback Adapter" as this simulates an active local network interface that Valet can bind too.

Useful Links

Changelog

Please see CHANGELOG for more information what has changed recently.

License

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

valet-windows's People

Contributors

taylorotwell avatar cretueusebiu avatar adamwathan avatar jasonvarga avatar lucasmichot avatar aaemnnosttv avatar kapersoft avatar jerguslejko avatar kennedytedesco avatar gounlaf avatar grusch-it avatar vinkla avatar korvinszanto avatar igorpan avatar nateritter avatar francismori7 avatar dbpolito avatar dalevfenton avatar foxgrovemedia avatar drbyte avatar lavatoaster avatar renedekat avatar pespantelis avatar mmikkel avatar jpscharf avatar mattstauffer avatar miclf avatar themsaid avatar okaufmann avatar pedroborges avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.