whatisgithub

What is autogitignore?

novusvetus/autogitignore — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2025-12-15

7PHPAudience · developerComplexity · 2/5QuietLicenseSetup · easy

In one sentence

A PHP helper tool that automatically updates your .gitignore file after Composer package updates, preventing dependency folders from being committed to your Git repository.

Mindmap

mindmap
  root((repo))
    What it does
      Auto gitignore entries
      Runs after Composer update
      Ignores dependency folders
    Tech stack
      PHP
      Composer
      Git
    Use cases
      Keep repos clean
      Ignore dev packages only
      Avoid manual gitignore edits
    Audience
      PHP developers
      Development teams
    License
      BSD 3-clause
      Open source
      Contributions welcome

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically ignore Composer dependency folders so they never get committed to Git.

USE CASE 2

Ignore only development packages while keeping production libraries tracked in version control.

USE CASE 3

Keep large PHP project repositories clean without manually editing .gitignore after every package update.

What is it built with?

PHPComposerGit

How does it compare?

novusvetus/autogitignoregoogleapis/google-cloud-php-functionscolin-johnston/hadron
Stars776
LanguagePHPPHPPHP
Last pushed2025-12-152026-06-172016-03-27
MaintenanceQuietMaintainedDormant
Setup difficultyeasymoderatemoderate
Complexity2/53/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires an existing PHP project using Composer, just add the package as a dependency.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice, no need to share your changes.

So what is it?

Auto Git Ignore is a small helper tool for PHP developers who use Composer (a popular package manager for PHP). Its job is simple: every time you update your project's packages, it automatically adds the right entries to your .gitignore file so that those packages don't get committed to your Git repository. If you've ever forgotten to ignore a dependencies folder and ended up pushing hundreds of third-party files into your own project, this tool is meant to prevent that headache. In practice, PHP projects often rely on Composer to download external libraries into a folder (typically vendor/). You generally don't want that folder stored in your Git history, it's bulky, and each person's project can rebuild it on their own. Instead of manually managing what gets ignored, this script runs automatically after Composer updates your packages and writes the ignore rules for you. There's also an option to ignore only development packages, which is useful if you want to keep production libraries tracked but exclude tools used just for testing or local work. The people who'd find this useful are PHP developers and teams who use Composer and Git together and want a small convenience layer that keeps their repositories clean without manual fuss. It's a niche tool, it only does one thing, but for anyone managing PHP projects, especially larger ones with many dependencies, it removes a small but persistent bit of friction. The README doesn't go into detail on edge cases, performance, or how the script behaves in unusual setups. The project is lightweight, openly licensed under a three-clause BSD license, and welcomes contributions or feature requests through GitHub issues.

Copy-paste prompts

Prompt 1
Set up Auto Git Ignore in my PHP Composer project so that the vendor directory is automatically added to .gitignore after every composer install or update.
Prompt 2
Configure Auto Git Ignore to only ignore development dependencies while keeping production packages tracked in my Git repository.
Prompt 3
Add Auto Git Ignore to an existing PHP project that already has a .gitignore file, and make sure it appends entries without duplicating existing rules.

Frequently asked questions

What is autogitignore?

A PHP helper tool that automatically updates your .gitignore file after Composer package updates, preventing dependency folders from being committed to your Git repository.

What language is autogitignore written in?

Mainly PHP. The stack also includes PHP, Composer, Git.

Is autogitignore actively maintained?

Quiet — no commits in 6-12 months (last push 2025-12-15).

What license does autogitignore use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice, no need to share your changes.

How hard is autogitignore to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is autogitignore for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.