Skip to content

This windows batch script creates the files and folders needed to start a PHP project. This batch script also creates a PHP server file that listens on port 1234 and serves the content from public_html inside the project. More info you can contact me erikthiart.com

Notifications You must be signed in to change notification settings

ErikThiart/php-boilerplate-batch-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

php-boilerplate-batch-script

This windows batch script creates the files and folders needed to start a PHP project. This batch script also creates a PHP server file that listens on port 1234 and serves the content from public_html inside the project. More info you can contact me erikthiart.com

The script creates the project on the desktop by default (that is normally where I save quick projects). This script was just an automated tool for me as I suddenly found myself creating the same base project stucture for new projects on a daily basis.

I hope this script is usefull to others and if you want to make modifications please do so and submit the changes back - I'd like to create a repo of automated batch scripts for small projects.

How to use it

Step 1: Save the create_project.bat file to your computer (It doesn't matter where, I generally keep mine on my desktop)

Step 2: Open CMD (windows command line) navigate to the location where you saved the script

Step 3: Run the script (optionally you can add a name for your project)

Example

Specified Project Name

Run the script in CMD <script>.bat project_name

specify name in CMD

named project

No Specified Project Name

If you just run the script without specifying a project name then it will create a random project name. For example if you just double click on the script.

no name specified

no name specified project

Project Structure

+---project_name
\-----app
      \---init.php
\-----public_html
      \---img
      \---header.php
      \---index.php
      \---footer.php
\-----server.bat

root directory tree

public_html directory tree

app directory tree

About

This windows batch script creates the files and folders needed to start a PHP project. This batch script also creates a PHP server file that listens on port 1234 and serves the content from public_html inside the project. More info you can contact me erikthiart.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published