Skip to content

Latest commit

 

History

History
104 lines (69 loc) · 4.03 KB

CONTRIBUTING.md

File metadata and controls

104 lines (69 loc) · 4.03 KB

Contributing

Contributions are welcome and will be fully credited.

Local Version

To get a local version working of DevDojo Auth.

  • Create a new Laravel application
  • Create a new folder at the root called packages
  • Inisde the packages folder will be devdojo/auth where auth will be the contents of this repo
  • Update your composer.json to include devdojo/auth inside the repositories key, and include the package inside the require key.

You'll also need to set the stability to dev in the composer.json

composer.json example

{
    ...
    "require": {
        ...
        "devdojo/auth": "*"
    }
    ...
    "repositories": [
        {
            "type" : "path",
            "url" : "./packages/devdojo/auth"
        }
    ],
    "minimum-stability": "dev"
}

Finally, run composer update. Next, we need to create two symlinks

Create Symlinks

  1. From the public directory create the following symlink
ln -s ../packages/devdojo/auth/public auth
  1. From the root directory, delete the current tests folder and create the following symlink
ln -s packages/devdojo/auth/tests tests 

Auth is now included in your project and is ready for development.

Please read and understand the contribution guide before creating an issue or pull request.

Etiquette

This project is open source, and as such, the maintainers give their free time to build and maintain the source code held within. They make the code freely available in the hope that it will be of use to other developers. It would be extremely unfair for them to suffer abuse or anger for their hard work.

Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the world that developers are civilized and selfless people.

It's the duty of the maintainer to ensure that all submissions to the project are of sufficient quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.

Viability

When requesting or submitting new features, first consider whether it might be useful to others. Open source projects are used by many developers, who may have entirely different needs to your own. Think about whether or not your feature is likely to be used by other users of the project.

Procedure

Before filing an issue:

  • Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
  • Check to make sure your feature suggestion isn't already present within the project.
  • Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
  • Check the pull requests tab to ensure that the feature isn't already in progress.

Before submitting a pull request:

  • Check the codebase to ensure that your feature doesn't already exist.
  • Check the pull requests to ensure that another person hasn't already submitted the feature or fix.

Requirements

If the project maintainer has any additional requirements, you will find them listed here.

  • PSR-2 Coding Standard - The easiest way to apply the conventions is to install PHP Code Sniffer.

  • Add tests! - Your patch won't be accepted if it doesn't have tests.

  • Document any change in behaviour - Make sure the README.md and any other relevant documentation are kept up-to-date.

  • Consider our release cycle - We try to follow SemVer v2.0.0. Randomly breaking public APIs is not an option.

  • One pull request per feature - If you want to do more than one thing, send multiple pull requests.

  • Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

Happy coding!