PHPackages                             richardhj/dc-general-single-model - 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. richardhj/dc-general-single-model

AbandonedContao-module

richardhj/dc-general-single-model
=================================

DcGeneral DataProvider and View for single model DCAs.

v1.0.0-beta.3(9y ago)122PHPPHP ^5.3 || ^7.0

Since Oct 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/richardhj/dc-general-single-model)[ Packagist](https://packagist.org/packages/richardhj/dc-general-single-model)[ RSS](/packages/richardhj-dc-general-single-model/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

DcGeneral "Single Model" data provider
======================================

[](#dcgeneral-single-model-data-provider)

[![Latest Version on Packagist](https://camo.githubusercontent.com/eb972c3ec5fa7ce6125e65eb0f8a82a5a2d2c40f2be17b31dd214ce0f05eee5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696368617264686a2f64632d67656e6572616c2d73696e676c652d6d6f64656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/richardhj/dc-general-single-model)![Software License](https://camo.githubusercontent.com/2bc95db9d4d6b319fe40fe1a46431a18f9684b30d516775115c5d0df6aa3e9b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4c47504c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Dependency Status](https://camo.githubusercontent.com/2f96d6abbcfc6b1870b0c582392a8272dccc3e3ba9db0564f171fa0163f53e15/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f72696368617264686a3a64632d67656e6572616c2d73696e676c652d6d6f64656c2f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/richardhj:dc-general-single-model)

This package provides a data provider and view for the DcGeneral. You can use it if your dca has to handle one dataset exactly – if you do not need a list view, just the edit mask. It is great to get rid of the DC\_File.

Install
-------

[](#install)

Via Composer

```
$ composer require richardhj/dc-general-single-model
```

Usage
-----

[](#usage)

For extension developers.

### DCA

[](#dca)

Minimum dca configuration

```
/**
 * DCA
 */
$GLOBALS['TL_DCA'][$table] = [

    // Config
    'config' => [
        'dataContainer' => 'General',
        'forceEdit'     => true,
    ],
    'dca_config'   => [
        'data_provider' => [
            'default' => [
                'class' => 'DcGeneral\Data\SingleModelDataProvider',
            ],
        ],
        'view'          => 'DcGeneral\View\SingleModelView',
    ],
```

The extension create a database table (with key=&gt;value structure) on its when using the database installer.

### Model

[](#model)

A model for accessing data

```
namespace MagickImages\Model;

use DcGeneral\Contao\Model\AbstractSingleModel;

/**
 * @property string $implementation
 */
class Config extends AbstractSingleModel
{

    /**
     * {@inheritdoc}
     */
    protected static $strTable = 'tl_magickimages_config';

    /**
     * {@inheritdoc}
     */
    protected static $objInstance;
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

3

Last Release

3497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4033a525e4937a81cd3480065c58c7616e1a770a3fb2425ff29aab14cfcb274e?d=identicon)[richardhj](/maintainers/richardhj)

---

Top Contributors

[![richardhj](https://avatars.githubusercontent.com/u/1284725?v=4)](https://github.com/richardhj "richardhj (7 commits)")

### Embed Badge

![Health badge](/badges/richardhj-dc-general-single-model/health.svg)

```
[![Health](https://phpackages.com/badges/richardhj-dc-general-single-model/health.svg)](https://phpackages.com/packages/richardhj-dc-general-single-model)
```

###  Alternatives

[metamodels/core

MetaModels core

10155.5k68](/packages/metamodels-core)[menatwork/synccto

Synchronize multiple contao installations with each other

2613.3k1](/packages/menatwork-synccto)

PHPackages © 2026

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