PHPackages                             prateik/core-php - 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. prateik/core-php

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

prateik/core-php
================

Connection class for core php development

v1.0.1(6y ago)06MITPHPPHP ^5.6 || ^7.0CI failing

Since Jan 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Prateik2710/Core-php)[ Packagist](https://packagist.org/packages/prateik/core-php)[ RSS](/packages/prateik-core-php/feed)WikiDiscussions master Synced today

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

prateik\\Core-php
=================

[](#prateikcore-php)

[![Author](https://camo.githubusercontent.com/1da803f4eea82ca1e629beadf6fa16b15d3f81640e7368a7e25e3f8a120fabe2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d407072617465696b2d626c75652e7376673f7374796c653d726f756e6465642d737175617265)](https://www.linkedin.com/in/prateikdarji) [![Build Status](https://camo.githubusercontent.com/dc400eaa1b3bdc06e6c746e965049451d19925969f0f77c8456d7c5e0c7eb1ff/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7072617465696b323731302f436f72652d7068702f6d61737465722e7376673f7374796c653d726f756e6465642d737175617265)](https://travis-ci.org/prateik2710/core-php) [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE) [![Packagist Version](https://camo.githubusercontent.com/02e487c434669f77242cc35d4e58e7844932583ceae435791d95ce2e691fac21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7072617465696b2f636f72652d7068702e7376673f7374796c653d726f756e6465642d737175617265)](https://packagist.org/packages/prateik/Core-php) [![Total Downloads](https://camo.githubusercontent.com/b282bb33ef3922e2d721cedc1bbcdfa34c428c2b73cfb2e18aa9eab2495cef25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7072617465696b2f636f72652d7068702e7376673f7374796c653d726f756e6465642d737175617265)](https://packagist.org/packages/prateik/Core-php)

same as laravel all the configuration you can use `.env` file for storing all configurations.

Also this package contains enable log and get all error logs in your root directory of project's log directory. Log will only be generated when `APP_DEBUG=true` has been set in .env file

Database connection will be generated once you set the details in .env `DB_HOST=localhost``DB_DATABASE=``DB_USERNAME=``DB_PASSWORD=`

this variables can be accessed by `getenv()`.

After defining parameters, a default pdo connection will been generated.

Create a new class with extending `Connection` class allows you to use pdo object using

`$yourClassName->pdo`

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2

Last Release

2369d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18028876?v=4)[Prateik Darji](/maintainers/Prateik2710)[@Prateik2710](https://github.com/Prateik2710)

---

Top Contributors

[![Prateik2710](https://avatars.githubusercontent.com/u/18028876?v=4)](https://github.com/Prateik2710 "Prateik2710 (25 commits)")

---

Tags

phpdatabaseconnecion

### Embed Badge

![Health badge](/badges/prateik-core-php/health.svg)

```
[![Health](https://phpackages.com/badges/prateik-core-php/health.svg)](https://phpackages.com/packages/prateik-core-php)
```

###  Alternatives

[popphp/pop-db

Pop Db Component for Pop PHP Framework

1816.5k12](/packages/popphp-pop-db)[modul-is/orm

Lightweight hybrid ORM/Explorer

1119.0k](/packages/modul-is-orm)[jonas-elias/hyperf-oracle

A oracle handler for hyperf/database.

102.5k](/packages/jonas-elias-hyperf-oracle)

PHPackages © 2026

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