.gitignore for Zend Framework
13 ignore rules for Zend Framework, ready to copy into your repository.
PHP framework for enterprise applications
The complete .gitignore for Zend Framework
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2025-08-14 12:02:03 UTC
# Technologies: Zend Framework
### Zend Framework ###
composer.phar
vendor/
config/autoload/*.local.php
# Compiled message catalogs
*.mo
data/logs/
data/cache/
data/sessions/
data/tmp/
temp/
data/DoctrineORMModule/Proxy/
data/DoctrineORMModule/cache/
demos/
extras/documentation
What these Zend Framework rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Composer files
| Pattern | What it ignores |
|---|---|
composer.phar |
Composer files |
vendor/ |
Composer files |
Local configs
| Pattern | What it ignores |
|---|---|
config/autoload/*.local.php |
Local configs |
Binary gettext files
| Pattern | What it ignores |
|---|---|
*.mo |
Compiled message catalogs |
Data
| Pattern | What it ignores |
|---|---|
data/logs/ |
Data |
data/cache/ |
Data |
data/sessions/ |
Data |
data/tmp/ |
Data |
temp/ |
Data |
Doctrine 2
| Pattern | What it ignores |
|---|---|
data/DoctrineORMModule/Proxy/ |
Doctrine 2 |
data/DoctrineORMModule/cache/ |
Doctrine 2 |
Legacy ZF1
| Pattern | What it ignores |
|---|---|
demos/ |
Legacy ZF1 |
extras/documentation |
Legacy ZF1 |
How to use this .gitignore for Zend Framework
- Copy the Zend Framework rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.