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.
Download amanprojects/phpstart
More information about amanprojects/phpstart
Files in amanprojects/phpstart
Package phpstart
Short Description PHP project scaffolding CLI — create production-ready PHP structures in one command
License MIT
Informations about the package phpstart
PHPStart - PHP Project Scaffolding CLI
A powerful command-line tool to scaffold production-ready PHP projects in seconds.
Features
- 🚀 Create complete PHP projects with one command
- 📦 Multiple project types: Core PHP, MVC, REST API, Laravel
- 🎨 Beautiful CLI with colored output
- 🔧 Zero dependencies - pure PHP only
- 📝 Complete with routing, database, and MVC structure
- 🔐 Built-in authentication and session management
- 🌐 REST API with CORS and middleware support
- 🛠️ Web-Based Installer: A premium 5-step installer wizard shipped by default for easy setup
- 🔄 Database Backup Panel: One-click DB backup and restore utility with auto-rotation
- 🚀 Version Command: Manage application & package versions easily via CLI
- 📚 Comprehensive documentation
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
--type=<type>- Project type (core, mvc, api, laravel)--force- Overwrite existing directory--no-git- Skip git initialization--author=<name>- Set author name
Project Types
Core PHP
Basic PHP project with:
- Simple routing system
- PDO database wrapper
- MVC structure
- Helper functions
- Environment configuration
MVC Framework
Full MVC framework with:
- Advanced routing
- Middleware support
- Authentication system
- Session management
- Request/Response handlers
- View rendering engine
REST API
RESTful API with:
- JSON responses
- CORS support
- Bearer token authentication
- Rate limiting
- Error handling
- RESTful routing (GET, POST, PUT, DELETE)
Laravel
Laravel framework installation with:
- Automatic setup
- Application key generation
- Post-install instructions for Livewire and Filament
Requirements
- PHP >= 8.1
- Composer
- Git (optional, for git initialization)
Examples
Environment Setup Guide
This section covers two things:
- System environment — what your machine needs to run
phpstart - 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
- Make sure your database server is running
- Try
127.0.0.1instead oflocalhost - Verify the database exists and the user has access
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
- Email: [email protected]
- GitHub: https://github.com/amanprojects-ops
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