|
| 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 |
0 commit comments