Visitar URL original
Create PHP.gitignore by vinnyfs89 · Pull Request #3258 · github/gitignore · GitHub
The Wayback Machine - https://web.archive.org/web/20210210085413/https://github.com/github/gitignore/pull/3258
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create PHP.gitignore #3258

Open
wants to merge 2 commits into
base: master
from
Open

Create PHP.gitignore #3258

wants to merge 2 commits into from

Conversation

@vinnyfs89
Copy link

@vinnyfs89 vinnyfs89 commented Dec 6, 2019

Reasons for making this change:

Creates a starter template for PHP applications.

Links to documentation supporting these rule changes:

✨ This is a new template.

Link to project’s homepage: https://www.php.net

@shiftkey
Copy link
Member

@shiftkey shiftkey commented Dec 6, 2019 •

@vinnyfs89 thanks for opening this PR. The rules here feel like they are covered by the Composer.gitignore template.

.env is not specific to PHP, but because we haven't figured out a good story for it has made an appearance in some other templates. If you can think of a better home for that I'd be open to reviewing a PR for that.

@shiftkey shiftkey added the needs info label Dec 6, 2019
Definition of PHP most used Frameworks, ORMs and tools.

References:
- #3258 (comment)
@vinnyfs89
Copy link
Author

@vinnyfs89 vinnyfs89 commented Dec 9, 2019

@shiftkey Thanks for reply.

I agree with the questions asked. Despite having identical files to those already in Composer.gitignore, this is currently a minimal framework for PHP projects or modules that most current frameworks already use.

Initially the purpose of this template is to make it possible to create a PHP repository that ignores minimally what is most common in most PHP applications, which are files linked to the PHP dependency manager (Composer) and .env environment variables.

but I understand what you said and using Python.gitignore template as a reference, i added most of the files that are generated by PHP most used Frameworks, ORMs and Environment Variables.

Please check that you are now in agreement.

@vasilvestre
Copy link

@vasilvestre vasilvestre commented Dec 19, 2019 •

.env is required by Symfony and shouldn't be ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants