PHPackages                             sunnysideup/connect-to-database - 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. sunnysideup/connect-to-database

ActiveSilverstripe-vendormodule[Database &amp; ORM](/categories/database)

sunnysideup/connect-to-database
===============================

Connect to the database using the command line using the .env file for information.

1.0.3(1y ago)035BSD-3-ClauseShell

Since Dec 10Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/sunnysideup/silverstripe-connect-to-database)[ Packagist](https://packagist.org/packages/sunnysideup/connect-to-database)[ RSS](/packages/sunnysideup-connect-to-database/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Connect to Database from the Command Line
=========================================

[](#connect-to-database-from-the-command-line)

[![Build Status](https://camo.githubusercontent.com/88c29b314ae23c35dbccb36488c3c8abf1c34f6df007ff4f0782ded1f98c74c5/68747470733a2f2f7472617669732d63692e6f72672f73756e6e797369646575702f73696c7665727374726970652d636f6e6e6563742d746f2d64617461626173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sunnysideup/silverstripe-connect-to-database)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a119dc154445563136b165d939f688c5b2c2c9bf1f667991340f3291e96dd521/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e6e797369646575702f73696c7665727374726970652d636f6e6e6563742d746f2d64617461626173652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunnysideup/silverstripe-connect-to-database/?branch=master)[![codecov.io](https://camo.githubusercontent.com/068d5d9d9219e01b9a5a3f617a25213ef7d59b5109439acaa36fe93849bd42c8/68747470733a2f2f636f6465636f762e696f2f6769746875622f73756e6e797369646575702f73696c7665727374726970652d636f6e6e6563742d746f2d64617461626173652f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/sunnysideup/silverstripe-connect-to-database?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/81b6cc09779d7b8256fe684e7c803b2bc2f1a0a65473b0cba3f9d24d76345d38/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f636f6e6e6563742d746f2d64617461626173652f76657273696f6e)](https://packagist.org/packages/sunnysideup/connect-to-database)[![License](https://camo.githubusercontent.com/000bffb53c49177e8d59f4c9e84eca9903c406c6c08eced41dd7eb0e045b0f00/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f636f6e6e6563742d746f2d64617461626173652f6c6963656e7365)](https://packagist.org/packages/sunnysideup/connect-to-database)[![Monthly Downloads](https://camo.githubusercontent.com/8b2260f100052b9aa408d057ebe4117494b1bc2e01991401cddbbe8071df7b65/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f636f6e6e6563742d746f2d64617461626173652f642f6d6f6e74686c79)](https://packagist.org/packages/sunnysideup/connect-to-database)

Documentation
-------------

[](#documentation)

- [Developer Docs](docs/en/INDEX.md)
- [User Guide](docs/en/userguide.md)
- [API Docs](http://docs.ssmods.com/sunnysideup/connect-to-database/classes.xhtml)

Requirements
------------

[](#requirements)

See [composer.json](composer.json) for details.

### Suggested modules

[](#suggested-modules)

See [composer.json](composer.json) for details.

Installation
------------

[](#installation)

```
composer require sunnysideup/connect-to-database
```

### Configuration

[](#configuration)

In the `_config` folder you will find the `connect-to-database.yml.example`file that shows options for the configuration of this module.

We recommend that you:

1. copy these `connect-to-database.yml.example` files into your `app/_config` folder (where available - otherwise search for `private static $` in the module to see what can be configured)
2. remove the .example extension,
3. delete the lines you do not care about, and
4. adjust the configurations that you would like to use.

Contributing
------------

[](#contributing)

We welcome any contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.

Paid assistance
---------------

[](#paid-assistance)

You can pay us to create an improved / adapted version of this module for your own projects. Please contact us if you like to find out more: [www.sunnysideup.co.nz](https://www.sunnysideup.co.nz). For example, we can write tests for this module.

Author
------

[](#author)

Sunny Side Up Ltd.

Looking for Silverstripe Modules?
---------------------------------

[](#looking-for-silverstripe-modules)

To find other modules, please visit [ssmods.com](https://ssmods.com/).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance74

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

5

Last Release

515d ago

Major Versions

1.0.3 → 5.x-dev2024-12-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167154?v=4)[Sunny Side Up](/maintainers/sunnysideup)[@sunnysideup](https://github.com/sunnysideup)

---

Top Contributors

[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (6 commits)")

---

Tags

devdatabasedbconnectdev-toolsefficiencies

### Embed Badge

![Health badge](/badges/sunnysideup-connect-to-database/health.svg)

```
[![Health](https://phpackages.com/badges/sunnysideup-connect-to-database/health.svg)](https://phpackages.com/packages/sunnysideup-connect-to-database)
```

###  Alternatives

[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M403](/packages/robmorgan-phinx)[spatie/laravel-translation-loader

Store your language lines in the database, yaml or other sources

8362.9M51](/packages/spatie-laravel-translation-loader)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

925511.7k13](/packages/envms-fluentpdo)[lichtner/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

921274.8k6](/packages/lichtner-fluentpdo)[danielme85/laravel-log-to-db

Custom Laravel Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel native logging functionality.

135934.5k1](/packages/danielme85-laravel-log-to-db)

PHPackages © 2026

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