Skip to content

Commit 5e07375

Browse files
committed
Merge branch 'more-defaults'
2 parents b4c658b + 3687bb8 commit 5e07375

File tree

2 files changed

+272
-0
lines changed

2 files changed

+272
-0
lines changed

.gitattributes

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
## gitattributes for PHP Libraries
2+
#
3+
# These settings are reasonable defaults for your library. They are specifically
4+
# geared for PHP files but common files associated with PHP projects have also
5+
# been included.
6+
#
7+
# All of the files have been divided into the general categories they fit in to
8+
# make things easier for you to maintain. There are some files that are placed
9+
# into categories that could easily belong to another category so I have just
10+
# tried to make it as logical as possible.
11+
#
12+
## Additional Resources
13+
#
14+
# - https://git-scm.com/docs/gitattributes
15+
# - https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
16+
# - https://github.com/alexkaratarakis/gitattributes
17+
#
18+
################################################################################
19+
20+
################################################################################
21+
## Default Settings
22+
#
23+
# Auto Detect
24+
# This is the default setting for all files NOT defined belong. Line endings
25+
# will automatically be handled for files detected as text and all files
26+
# detected as binary will be untouched.
27+
#
28+
# Default EOL
29+
# All files have their default end of line character set so that unless
30+
# specifically set to something else, they will all be the same.
31+
#
32+
* text=auto eol=lf
33+
################################################################################
34+
35+
################################################################################
36+
## Table Of Contents
37+
################################################################################
38+
#
39+
# 1. General
40+
# 2. Archives
41+
# 3. Configuration
42+
# 4. Documentation
43+
# 5. Executable
44+
# 6. Fonts
45+
# 7. Graphics
46+
# 8. Source
47+
# 9. Templates
48+
#
49+
################################################################################
50+
# 1. General
51+
#
52+
# The files listed here could fit into many categories. Rather than have you
53+
# trying to hunt down which category they fit in, they have been placed into
54+
# a general purpose category.
55+
################################################################################
56+
*.csv text
57+
*.txt text
58+
59+
################################################################################
60+
# 2. Archives
61+
################################################################################
62+
*.7z binary
63+
*.gz binary
64+
*.jar binary
65+
*.rar binary
66+
*.tar binary
67+
*.zip binary
68+
69+
################################################################################
70+
# 3. Configuration
71+
################################################################################
72+
*.cfg text
73+
*.cnf text
74+
*.conf text
75+
*.config text
76+
*.neon text
77+
*.yaml text
78+
*.yml text
79+
.editorconfig text
80+
.gitattributes text
81+
.gitconfig text
82+
.gitignore text
83+
.htaccess text
84+
.php_cs text
85+
Makefile text
86+
87+
################################################################################
88+
# 4. Documentation
89+
################################################################################
90+
*.markdown text
91+
*.md text
92+
*.mdown text
93+
AUTHORS text
94+
CHANGELOG text
95+
CONTRIBUTING text
96+
INSTALL text
97+
LICENSE text
98+
*README* text
99+
TODO text
100+
101+
################################################################################
102+
# 5. Executable
103+
################################################################################
104+
*.bat text eol=crlf
105+
*.exe binary
106+
*.phar text
107+
*.sh text eol=lf
108+
109+
################################################################################
110+
# 6. Fonts
111+
################################################################################
112+
*.ttf binary
113+
*.eot binary
114+
*.otf binary
115+
*.woff binary
116+
*.woff2 binary
117+
118+
################################################################################
119+
# 7. Graphics
120+
################################################################################
121+
*.ai binary
122+
*.bmp binary
123+
*.eps binary
124+
*.gif binary
125+
*.ico binary
126+
*.jng binary
127+
*.jp2 binary
128+
*.jpg binary
129+
*.jpeg binary
130+
*.jpx binary
131+
*.jxr binary
132+
*.pdf binary
133+
*.png binary
134+
*.psb binary
135+
*.psd binary
136+
*.svg text
137+
*.svgz binary
138+
*.tif binary
139+
*.tiff binary
140+
*.wbmp binary
141+
*.webp binary
142+
143+
################################################################################
144+
# 8. Source
145+
#
146+
# Files listed in this category are intended to be generally what you would
147+
# find in a PHP project as a maintained file. They may fit into other
148+
# categories, but it is easier to group them all here.
149+
################################################################################
150+
*.bat text eol=crlf
151+
*.coffee text
152+
*.css text
153+
*.htm text
154+
*.html text
155+
*.inc text
156+
*.ini text
157+
*.js text
158+
*.json text
159+
*.jsx text
160+
*.less text
161+
*.lock text
162+
*.php text
163+
*.pl text
164+
*.po text
165+
*.py text
166+
*.rb text
167+
*.sass text
168+
*.scm text
169+
*.scss text
170+
*.sh text eol=lf
171+
*.sql text
172+
*.xml text
173+
*.xml.dist text
174+
175+
################################################################################
176+
# 9. Templates
177+
################################################################################
178+
*.ctp text
179+
*.ejs text
180+
*.haml text
181+
*.handlebars text
182+
*.jade text
183+
*.mustache text
184+
*.tmpl text
185+
*.tpl text
186+
*.twig text

.gitignore

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
## gitignore for PHP Libraries
2+
#
3+
# The settings in this file are intended to be reasonable defaults for a general
4+
# PHP library. There is no way this file could be comprehensive and still be
5+
# considered a bootstrap skeleton. Instead, the settings here will cover your
6+
# basics and provide you the resources you need to customize it to suit the
7+
# specific needs of your project.
8+
#
9+
## Additional Resources
10+
#
11+
# - https://github.com/github/gitignore
12+
#
13+
################################################################################
14+
15+
################################################################################
16+
## Table Of Contents
17+
################################################################################
18+
#
19+
# 1. Composer
20+
# 2. Operating System
21+
# 3. Local Test Configurations
22+
# 4. Tools
23+
#
24+
################################################################################
25+
# 1. Composer
26+
#
27+
# The composer.lock file is ignored by default. This is completely up to you
28+
# if it should be committed to the repository or not. For more information on
29+
# why it is ignored by default:
30+
#
31+
# https://getcomposer.org/doc/02-libraries.md#lock-file
32+
################################################################################
33+
/vendor/*
34+
composer.lock
35+
36+
################################################################################
37+
# 2. Operating System
38+
################################################################################
39+
.DS_Store
40+
.AppleDouble
41+
.LSOverride
42+
Icon
43+
._*
44+
.DocumentRevisions-V100
45+
.fseventsd
46+
.Spotlight-V100
47+
.TemporaryItems
48+
.Trashes
49+
.VolumeIcon.icns
50+
.com.apple.timemachine.donotpresent
51+
.AppleDB
52+
.AppleDesktop
53+
Network Trash Folder
54+
Temporary Items
55+
.apdisk
56+
57+
################################################################################
58+
# 3. Local Test Configurations
59+
#
60+
# These settings assume that you have added the .dist extension to your test
61+
# configuration files and do not want to commit your local .xml version.
62+
################################################################################
63+
phpcs.xml
64+
phpdoc.xml
65+
phpdox.xml
66+
phpmd.xml
67+
phpunit.xml
68+
69+
################################################################################
70+
# 4. Tools
71+
#
72+
# The settings here ignore common files that are created by the development
73+
# you use that should not be committed.
74+
################################################################################
75+
*~
76+
*.swp
77+
*.swo
78+
*.sublime-*
79+
*.stTheme.cache
80+
*.tmlanguage.cache
81+
*.tmPreferences.cache
82+
.settings/*
83+
.idea/*
84+
nbproject/*
85+
.vscode
86+
.sass-cache/

0 commit comments

Comments
 (0)