88A lightweight, framework-agnostic database layer for PHP.
99Part of the Codemonster ecosystem — but works fully standalone.
1010
11- ## 📦 Installation
11+ ## Installation
1212
1313``` bash
1414composer require codemonster-ru/database
1515```
1616
17- ## 🚀 Usage
17+ ## Usage
1818
1919### 1. Database Manager
2020
@@ -232,7 +232,7 @@ transaction(fn() => // convenience wrapper
232232
233233Helpers are thin wrappers around ` DatabaseManager ` and the connection’s ` schema() ` / ` transaction() ` methods.
234234
235- ## 📐 Schema Builder
235+ ## Schema Builder
236236
237237The package includes a lightweight schema builder.
238238
@@ -271,7 +271,7 @@ $db->schema()->drop('users');
271271$db->schema()->dropIfExists('users');
272272```
273273
274- ## 🗄 Supported Column Types
274+ ## Supported Column Types
275275
276276- Integers: ` id ` , ` integer ` , ` bigInteger ` , ` mediumInteger ` , ` smallInteger ` , ` tinyInteger `
277277- Floats: ` decimal ` , ` double ` , ` float `
@@ -283,7 +283,7 @@ $db->schema()->dropIfExists('users');
283283- Indexes: ` index ` , ` unique ` , ` primary `
284284- Foreign keys with ` foreign() ` / ` references() ` / ` on() ` and ` onDelete() ` / ` onUpdate() ` helpers
285285
286- ## 🚦 Migrations
286+ ## Migrations
287287
288288The package includes a migration system (designed to be used via the CLI).
289289
@@ -314,7 +314,7 @@ return new class extends Migration {
314314};
315315```
316316
317- ## 🧬 ORM (ActiveRecord / Eloquent‑style)
317+ ## ORM (ActiveRecord / Eloquent‑style)
318318
319319** Since 1.3.0** , the package includes a complete ORM layer:
320320
@@ -371,7 +371,7 @@ $user->save();
371371$user->delete();
372372```
373373
374- ## 🔗 Relationships
374+ ## Relationships
375375
376376Available relations:
377377
@@ -408,7 +408,7 @@ $user->posts;
408408$user->load('posts');
409409```
410410
411- ## 🧹 Soft Deletes
411+ ## Soft Deletes
412412
413413``` php
414414use Codemonster\Database\Traits\SoftDeletes;
@@ -423,7 +423,7 @@ class User extends Model {
423423- ` User::onlyTrashed() `
424424- ` User::withTrashed() `
425425
426- ## 🧰 CLI Tool
426+ ## CLI Tool
427427
428428A standalone CLI ships with the package:
429429
@@ -455,6 +455,8 @@ vendor/bin/database migrate:status
455455vendor/bin/database make:migration CreatePostsTable
456456```
457457
458+ Migration names must be CamelCase using only Latin letters (e.g., ` CreateUsersTable ` ). Names that include other symbols or casing styles are rejected.
459+
458460Default migrations directory:
459461
460462``` text
@@ -467,16 +469,16 @@ You can override paths via the migration kernel/path resolver:
467469$kernel->getPathResolver()->addPath('/path/to/migrations');
468470```
469471
470- ## 🧪 Tests
472+ ## Tests
471473
472474``` bash
473475composer test
474476```
475477
476- ## 👨💻 Author
478+ ## Author
477479
478480[ ** Kirill Kolesnikov** ] ( https://github.com/KolesnikovKirill )
479481
480- ## 📜 License
482+ ## License
481483
482484[ MIT] ( https://github.com/codemonster-ru/database/blob/main/LICENSE )
0 commit comments