Coder Social home page Coder Social logo

php-built-in-server's Introduction

php-built-in-server extension for vscode

Features

  • 83KB extension
  • PHP Hot Reloading - Automatically reloads your browser when a file is saved in the editor
  • Uses php's built in server - less overhead, less dependencies less stress.
  • Since it's a php native feature - your built in php ini file and configurations are naturally supported

Please note per PHP docs:

The built in web server is not intended to be a full-featured web server

This extension also does not intend to support full-featured web servers. This is for quickly running a server against a workspace with hot reloading

Extension Settings

This extension contributes the following settings:

  • php-built-in-server.server.port: specify a specific port number to use (defaults to first found open port)
  • php-built-in-server.server.root: specify the starting file (defaults to index.php relative to the workspace)
  • php-built-in-server.phpExecutable: specify the path to your php executable (this extension runs which php or where php for platforms to automatically find the executable, you only need specify one where it can't be found)
  • php-built-in-server.isHeadless: toggle opening your browser to the server
  • php-built-in-server.globals.env-vars: Inject envs using putenv()
  • php-built-in-server.globals.consts: Inject consts using define()

Usage

In your command palette type PHP Built In Server: Start and that's it!

A terminal will populate and your browser will open a tab to the server address

Note: This command will only display in the command palette if one is not running via the when expression: !php-built-in-server.isRunning

Enjoy!

php-built-in-server's People

Contributors

soulshined avatar

Watchers

 avatar

Forkers

hayoun01

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.