PHPackages                             sysel/nette-database-myisam - 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. sysel/nette-database-myisam

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

sysel/nette-database-myisam
===========================

Nette-Database-MyISAM - MyISAM driver for Nette Database

v1.3.0(9y ago)022BSD-3PHPPHP &gt;=5.3

Since Feb 12Pushed 9y ago2 watchersCompare

[ Source](https://github.com/sysel/Nette-Database-MyISAM)[ Packagist](https://packagist.org/packages/sysel/nette-database-myisam)[ Docs](https://github.com/sysel/Nette-Database-MyISAM)[ RSS](/packages/sysel-nette-database-myisam/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Nette Database MySQL MyISAM driver
==================================

[](#nette-database-mysql-myisam-driver)

[![Build Status](https://camo.githubusercontent.com/dbefdeecb8717295d31a5d456f9dc3b66c62ed5a1d2b0bbc3ae188982cbdbfc8/68747470733a2f2f6170692e7472617669732d63692e6f72672f737973656c2f4e657474652d44617461626173652d4d794953414d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sysel/Nette-Database-MyISAM)

Nette Database doesn't support MySQL MyISAM tables by default because this database storage doesn't store information about foreign keys. Unfortunately, there are still servers which support only MyISAM storage tables because they don't consume too many system resources. This driver enables you to use Nette database on those servers.

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

[](#requirements)

- [Nette](http://nette.org/ "Nette Framework") for PHP 5.6+ (tested on version 2.4.0)
- table's referenced columns names shall be in format `table_columnName`, like `author_id` or shall have `@refs table.columnName` in column's comment. The schema can look like:

```
|          Category                |
| Column name  | Column comment    |
+----------------------------------+
| id           | Category id       |
| name         | Category name     |

|            Text                                 |
| Column name  | Column comment                   |
+-------------------------------------------------+
| id           | Text id                          |
| category_id  | Some comment                     |
| category     | @refs category.id Some comment :)|
| text         | Text content                     |

```

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

[](#installation)

Download and copy driver to `libs/Sysel/Nette-Database-MyISAM` dir or somewhere else where robot loader can find it. Or use composer

```
composer require sysel/nette-database-myisam
```

Use
---

[](#use)

Create database connection:

```
$options = [
    'driverClass' => '\\Sysel\\Nette\\Database\\Drivers\\MySqlMyIsamDriver',
];
$connection = new \Nette\Database\Connection(
        'mysql:host='.$servername.';dbname='.$database,
        $user,
        $password,
        $options
    );
```

Or you can add it to you config.neon:

```
database:
    default:
        dsn: '%database.driver%:host=%database.host%;dbname=%database.database%'
        user: %database.user%
        password: %database.password%
        conventions: discovered
        autowired: true
        options:
            driverClass: Sysel\Nette\Database\Drivers\MySqlMyIsamDriver
```

Running tests
-------------

[](#running-tests)

Please use [Composer](https://getcomposer.org/ "Composer - Dependency Manager for PHP") to download all dependencies.

```
composer update
```

Than run Nette Tester with your `php.ini` file configuration. The configuration is required for correct PDO class use.

```
# Linux users
vendor/bin/tester -c tests/php-unix.ini tests
# Windows users
vendor/bin/tester -c tests/php-win.ini tests
```

Known limitations
-----------------

[](#known-limitations)

Getting relations from information schema is not very effective therefore using cache storage is recommended. Despite of that first run can still take several seconds.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~235 days

Total

3

Last Release

3642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f6da39df1f80a2157e93f611a3600faf6cb712e1a9924a01ba952844b330d0c?d=identicon)[sysel](/maintainers/sysel)

---

Top Contributors

[![sysel](https://avatars.githubusercontent.com/u/644718?v=4)](https://github.com/sysel "sysel (35 commits)")

---

Tags

nettedatabasedrivermyisam

### Embed Badge

![Health badge](/badges/sysel-nette-database-myisam/health.svg)

```
[![Health](https://phpackages.com/badges/sysel-nette-database-myisam/health.svg)](https://phpackages.com/packages/sysel-nette-database-myisam)
```

###  Alternatives

[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[uestla/yetorm

Lightweight ORM for Nette\\Database

4936.4k](/packages/uestla-yetorm)[modul-is/orm

Lightweight hybrid ORM/Explorer

1118.1k](/packages/modul-is-orm)[chillerlan/php-database

An extensible database wrapper and query builder.

431.2k2](/packages/chillerlan-php-database)

PHPackages © 2026

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