Download the PHP package amanprojects/phpstart without Composer

On this page you can find all versions of the php package amanprojects/phpstart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpstart

PHPStart - PHP Project Scaffolding CLI

A powerful command-line tool to scaffold production-ready PHP projects in seconds.

Features

Installation

Step 1 — Install Composer

If you don't have Composer installed, get it first.

Linux / macOS

Windows Download and run the installer from https://getcomposer.org/download After install, verify:


Step 2 — Install PHPStart

Option A — Global Installation (Recommended)

Installs phpstart as a global command available anywhere on your system.

Then make sure Composer's global bin directory is in your system PATH.

Linux / macOS — add this to your ~/.bashrc, ~/.zshrc, or ~/.profile:

Reload your shell:

Windows — add this path to your system environment variables:

Go to: Control Panel > System > Advanced System Settings > Environment Variables Edit the Path variable and add the line above. Then restart your terminal.

Verify the install:


Option B — Local Installation (Per Project)

Install inside a specific project only.


Option C — Clone and Install Manually

To use it globally from a local clone, symlink the binary:

Linux / macOS

Windows — add the bin/ folder path to your system Path environment variable.


Step 3 — Verify Installation

You should see the ASCII banner and available commands.

Usage

Create a New Project

Available Commands

Options

Project Types

Core PHP

Basic PHP project with:

MVC Framework

Full MVC framework with:

REST API

RESTful API with:

Laravel

Laravel framework installation with:

Requirements

Examples

Environment Setup Guide

This section covers two things:

  1. System environment — what your machine needs to run phpstart
  2. Project .env — how to configure the app that phpstart generates

Part 1 — System Environment (for phpstart itself)

phpstart is a CLI tool. It does not use a .env file itself. Instead it relies on your system PATH and installed tools.

Required: PHP >= 8.1

Verify your PHP version:

If PHP is not installed:

OS Install
Windows Download from https://windows.php.net or install XAMPP
macOS brew install php
Ubuntu/Debian sudo apt install php8.1-cli
CentOS/RHEL sudo dnf install php

Make sure php is available in your terminal PATH:


Required: Composer

Verify Composer is installed:

If not installed:

Linux / macOS

Windows Download the installer from https://getcomposer.org/download and run it.


Required: Composer Global Bin in PATH

After installing phpstart globally, the phpstart command must be reachable from your terminal.

Linux / macOS — add to ~/.bashrc or ~/.zshrc:

Reload:

Windows — add this to your system Path environment variable:

Go to: Control Panel > System > Advanced System Settings > Environment Variables Find Path under System Variables, click Edit, and add the line above. Restart your terminal after saving.

Verify:


Optional: Git

Git is used to auto-initialize a repository after scaffolding. If Git is not installed, phpstart will skip this step with a warning.

Install Git: https://git-scm.com/downloads

To skip git init when running phpstart:


Optional: Composer (for --type=laravel)

The laravel type runs composer create-project internally. Composer must be installed and available in PATH for this to work.


Part 2 — Project .env Setup (for generated projects)

Every project scaffolded by phpstart includes a .env file at the root. This file holds all environment-specific configuration — database credentials, app name, debug mode, etc.

Step 1 — Locate Your .env

After running phpstart new myapp, your project root will contain:

If .env is missing, recreate it from the example:


Step 2 — Configure All Variables

Open .env and fill in your values:


Step 3 — Environment Profiles

Local Development (PHP built-in server)

XAMPP / WAMP (subfolder)

Production Server


Step 4 — Reading Variables in Code

Use the built-in env() helper anywhere in your project:


Step 5 — Common Issues and Fixes

env() returns null for every key Your .env file is missing or in the wrong location. It must be at the project root, not inside public/.

Special characters in password break the connection Wrap the value in double quotes:

App name with spaces not loading correctly Always quote values that contain spaces:

Wrong timezone causing date issues Check your current system timezone:

Then set the matching value in .env.

Database connection refused

phpstart command not found after global install Your Composer global bin is not in PATH. See Part 1 above.


.env Security Checklist

Rule Why
Never commit .env to git Contains passwords and secrets
Always commit .env.example Lets teammates know what keys exist
Set APP_DEBUG=false in production Prevents leaking stack traces publicly
Use a non-root database user in production Limits damage if credentials are exposed
Set file permissions on Linux: chmod 600 .env Prevents other system users from reading it
Never place .env inside public/ It would be directly downloadable via browser

Running Your Project

After creating a project and configuring .env:

Visit http://localhost:8000

Project Structure

License

MIT License - see LICENSE file for details

Author

Aman Projects

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions, please open an issue on GitHub.


Made with ❤️ by Aman Projects


All versions of phpstart with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amanprojects/phpstart contains the following files

Loading the files please wait ...