Skip to content

TharinduWijayarathna/PHP-Project-Boilerplate

 
 

Repository files navigation

PHP Project Boilerplate

This project is a PHP application boilerplate using Laravel components and Phinx for database migrations.

Features

  • Uses Laravel's Illuminate Collections.
  • Phinx for database migrations.
  • dotenv-php for environment variables.

Requirements

  • PHP >= 7.4
  • Composer

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/php-project-boilerplate.git
  2. Navigate into the project directory:

    cd php-project-boilerplate
  3. Install dependencies:

    composer install

Usage

Running Migrations

./cmdrunner migrate

Rolling Back Migrations

./cmdrunner rollback

Viewing Migration Status

./cmdrunner status

Creating a New Migration

./cmdrunner create migration MyNewMigration

Creating a New Seeder

./cmdrunner create seed MyNewSeeder

Running Seeders

./cmdrunner seed

Running Tests

composer test

Configuration

  • Adjust database settings in phinx.php and .env.

Contributing

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeatureName).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/YourFeatureName).
  5. Open a pull request.

License

MIT License. See LICENSE for details.

About

Boilerplate for develop core php applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.4%
  • Hack 0.6%