Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.19 KB

CONTRIBUTING.md

File metadata and controls

47 lines (32 loc) · 1.19 KB

How to contribute to laravel-makeclass

Hey, thank you for contributing. Here are some tips to make it easy for you.

Committing code

  1. Fork the project
  2. git clone it and composer install the dependencies
  3. Create a new branch
  4. Think about how the changes you are about to make can be tested, optionally write tests before coding
  5. Run tests, make sure they fail
  6. Write the actual code to make the tests pass
  7. Open a pull request detailing your changes. Make sure to follow the template

Testing

I use PHPUnit for testing.

Have a new feature? You can start off by writing some tests that detail the behaviour you want to achieve and go from there.

Fixing a bug? The best way to ensure it is fixed for good and never comes back is to write a failing test for it and then make it pass. If you can not figure out how to fix it yourself, feel free to submit a PR with a failing test.

Run the testsuite

composer test

Codestyle

Formatting is automated through php_codesniffer.

Check the codestyle

composer check-style

Apply automated fixes

composer fix-style