PHPackages                             tazzy/helpers - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tazzy/helpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tazzy/helpers
=============

Common helpers

05PHP

Since Aug 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tawazz/Tazzy-Helpers)[ Packagist](https://packagist.org/packages/tazzy/helpers)[ RSS](/packages/tazzy-helpers/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Tazzy-Helpers
=============

[](#tazzy-helpers)

php helper functions for common tasks ranging from database , file handling, validation,emails,hashing, tokens and sessions

Using Tazzy-Helpers
===================

[](#using-tazzy-helpers)

- To use Tazzy-Helpers in your project:

    - include "Tazzy-Helpers/autoload.php";
- Database accesss:
- create secrets.php file
- add config

```
$GLOBALS['config'] = [
  'db'        => [
      'driver'   => 'mysql',
      'host'     => 'localhost',
      'username' => 'root',
      'password' => 'secret',
      'db'       => 'database',
      'prefix'   => ''
  ]
];
```

```
* edit the config file to set your database config settings. Note Database uses PDO

```

- There is two ways to use the database helpers, one way is to use the querybuilder class which uses php code to create sql queries and the other way is to inherit the Table class to use it on your models for a basic ORM

DB usage
--------

[](#db-usage)

- Raw queries

```
  $users = DB::getInstance()->query('Select * from users');
  if(!$users->count()){
      echo 'no such user found';
  }else{
    foreach($users->result() as $user){
        echo $user->username;
    }
  }
```

- Insert into Database

```
$insert = DB::getInstance()-> insert('users',array(
  'firstname'=> 'john',
  'lastname'=> 'doe',
));
```

- Update

```
$update = DB::getInstance()->update('users',array('id','=', '1'),array(
   'firstname'=> 'alex'
 ));
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12362544?v=4)[tawanda](/maintainers/tawazz)[@tawazz](https://github.com/tawazz)

---

Top Contributors

[![tawazz](https://avatars.githubusercontent.com/u/12362544?v=4)](https://github.com/tawazz "tawazz (49 commits)")

### Embed Badge

![Health badge](/badges/tazzy-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/tazzy-helpers/health.svg)](https://phpackages.com/packages/tazzy-helpers)
```

###  Alternatives

[fetchleo/laravel-xml

Convert Eloquent models to XML, as well as normal objects.

104.2k](/packages/fetchleo-laravel-xml)

PHPackages © 2026

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