baremetalphp / baremetalphp
A new project built with Bare Metal PHP
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Hack
Type:project
pkg:composer/baremetalphp/baremetalphp
Requires
- php: >=8.0
- baremetalphp/framework: v0.1.3
README
Welcome to your new Bare Metal PHP application! This is a clean, minimal installation ready for you to build upon.
Installation
This project was created using:
composer create-project elliotanderson/baremetal my-app
🚀 Quick Start
1. Install Dependencies
composer install
2. Configure Environment
cp .env.example .env
Edit .env to configure your database and application settings.
3. Create Database
For SQLite (default):
touch database.sqlite
For MySQL/PostgreSQL, update your .env file with your database credentials.
4. Run Migrations
php mini migrate
This will create the users table and any other migrations you've added.
5. Start Development Server
php mini serve
Visit http://127.0.0.1:9003 in your browser to see the welcome page!
📁 Project Structure
fresh-install/
├── app/
│ ├── Http/
│ │ └── Controllers/ # Your controllers
│ └── Models/ # Your models
├── bootstrap/ # Application bootstrap
├── config/ # Configuration files
├── database/
│ └── migrations/ # Database migrations
├── public/ # Web root
├── resources/
│ └── views/ # Your views
├── routes/ # Route definitions
└── storage/ # Storage (cache, logs, etc.)
🛠️ Available Commands
php mini serve- Start the development serverphp mini migrate- Run database migrationsphp mini migrate:rollback- Rollback the last migrationphp mini make:controller Name- Create a new controllerphp mini make:migration name- Create a new migration
📚 Next Steps
- Create Routes: Edit
routes/web.phpto add your routes - Create Controllers: Use
php mini make:controller Nameor create manually inapp/Http/Controllers/ - Create Models: Add models in
app/Models/extendingFramework\Database\Model - Create Views: Add views in
resources/views/and useView::make('view-name') - Run Migrations: Create migrations with
php mini make:migrationand run withphp mini migrate
📖 Documentation
For more information, visit the framework documentation.
Happy coding! 🎉