# gitlib 2.0

A new major version of gitlib, a PHP library for working with Git repositories, where every git operation now goes through a typed driver.

The driver returns typed hashes, enums and value objects instead of raw command output. A failing operation always throws an exception. Dates are DateTimeImmutable, and names in diffs and trees are UTF-8. It needs PHP 8.4 or later, and an upgrade guide lists every change.

- Made by: [Gitonomy](https://github.com/gitonomy)
- Shipped: 10/11/2026
- Date from: [release](https://github.com/gitonomy/gitlib/releases/tag/v2.0.0)
- Source: [github.com/gitonomy/gitlib](https://github.com/gitonomy/gitlib)
- Docs: [gitonomy.github.io/gitlib](https://gitonomy.github.io/gitlib/)
- Install: `composer require gitonomy/gitlib`
- Licence: MIT
- Stack: plain PHP
- Topics: Developer tools
- Checked: 14/11/2026
- Added: 14/11/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/gitlib-2-0/)
```

See more at [phplives.dev](https://phplives.dev)
