blackcattools/yii2-base

The Imagine integration for the Yii framework

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.4 2018-12-21 17:36 UTC

This package is not auto-updated.

Last update: 2024-10-06 12:55:52 UTC


README

This project contains basic extensions for the Yii2 framework.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist blackcattools/yii2-base
composer require --prefer-dist blackcattools/yii2-base

or add

"blackcattools/yii2-base": "~1.0.4"

to the require section of your composer.json.

Basic Usage

The following example shows how to use this extension:

use blackcattools\base\Bit;

$value = 10;   //bits 1 and 3 active

Bit::test(1,$value); //return true
Bit::test(0,$value); //return false
Bit::test(3,$value); //return true
Bit::test(9,$value); //return false