PHPackages                             urbics/civitools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. urbics/civitools

ActiveLibrary[Database &amp; ORM](/categories/database)

urbics/civitools
================

Tools to integrate a CiviCRM database into Laravel projects.

v0.26(8y ago)11441MITPHPPHP ^5.6.4 || ^7.0

Since Dec 29Pushed 8y agoCompare

[ Source](https://github.com/urbics/civitools)[ Packagist](https://packagist.org/packages/urbics/civitools)[ RSS](/packages/urbics-civitools/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Civitools
=========

[](#civitools)

Tools to integrate CiviCRM a database into a Laravel project.
-------------------------------------------------------------

[](#tools-to-integrate-civicrm-a-database-into-a-laravel-project)

Console commands to build migrations for all CiviCRM tables from CiviCRM's schema.xml source (as of 4.7) and seeders from civicrm\_data.mysql and civicrm\_acl.mysql source, as well as Entity model classes for all CiviCRM tables; also includes console commands to generate a CiviCRM database directly from civicrm.mysql, and to backup and restore a CiviCRM database.

Package Installation
--------------------

[](#package-installation)

```
composer require urbics/civitools
```

Or manually modify `composer.json`:

```
"require": {
    "urbics/civitools": "~0.1"
}
```

and `composer install`.

Installer adds CIVI\_DB\_XXX settings to the .env file that should be reviewed to match your setup. The tools use these settings to connect to the database.

Tools
-----

[](#tools)

- `civi:make:db` to create db and build tables using CiviCRM's civicrm.msql script.
- `civi:make:migration` to generate Laravel migration files, optionally with seeder and model classes. Note: you may need to increase the file limit above 256. On Mac OS: `ulimit -n 1024`.
- Build the tables using Laravel's migration: `php artisan migrate --database=civicrm --path=database/migrations/civi --seed` (These are the default settings - change database connection and path as needed).
- `civi:db:backup` to back up or restore the civicrm database. Be sure to set CIVI\_DB\_CONNECTION, CIVI\_DB\_DATABASE, CIVI\_DB\_HOST, CIVI\_DB\_USERNAME and CIVI\_DB\_PASSWORD in your .env file if any of the civicrm database settings are different from the default settings for your project.

Limitations and cautions
------------------------

[](#limitations-and-cautions)

This is the same package as urbics/laracivi with the civi api functionality and the civicrm-core and civicrm-packages removed. It is intended for projects that need direct access to a CiviCRM, but have dependency version conflicts with the civicrm-core package.

Tests
-----

[](#tests)

The project includes phpunit tests for each of the console commands.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

4

Last Release

3096d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29735946?v=4)[Urbics](/maintainers/urbics)[@urbics](https://github.com/urbics)

---

Top Contributors

[![Dmealy](https://avatars.githubusercontent.com/u/674078?v=4)](https://github.com/Dmealy "Dmealy (12 commits)")[![urbics](https://avatars.githubusercontent.com/u/29735946?v=4)](https://github.com/urbics "urbics (9 commits)")

### Embed Badge

![Health badge](/badges/urbics-civitools/health.svg)

```
[![Health](https://phpackages.com/badges/urbics-civitools/health.svg)](https://phpackages.com/packages/urbics-civitools)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M114](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
