Data Validation and Filtering Security Project.
PHP Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
python
LICENSE
README.md
ibeon.php

README.md

iBeon 2

Enhanced Version of iBeon ( Data Validation and Filtering Security Project.)

About iBeon 2

iBeon itself having several functions to filter and validate data. By using this you can make your project much more easier.

Python Version is also availiable in this repo ( inside python/ folder)

Overview of some of the features:

  • Remove Functions
  • Filter Functions
  • Count Functions

Examples

Initialization

<?php
    include('ibeon.php');
?>

Create new Object

<?php
$ib =   new ibeon;
?>

Remove Functions

##Removing the Numbers from a String

<?php
    $var="Hello11353";
    echo $ib->remNumbers($var);
?>

The result will be Hello

##Removing the Symbols from a String

<?php
    $var="ABC$#D";
    echo $ib->remSymbols($var);
?>

The result will be ABCD

Counting Functions

###Counting Integers

<?php
    $var="ABC$#D123";
    echo $ib->countNumbers($var);
?>

The result will be 3

###Counting Letters

<?php
    $var="ABC$#D123";
    echo $ib->countAlpabets($var);
?>

The result will be 4

Restricting the data with Only Functions

###Restricting all except Numbers

<?php
    $var="ABC$#D123";
    echo $ib->onlyNumbers($var);
?>

The result will be 123

###Restricting all except Letters

<?php
    $var="ABC$#D123";
    echo $ib->onlyAlpabets($var);
?>

The result will be ABCD

Special Sting Functions

String Next Function

<?php
    $var="ABCD";
    echo $ib->strNext(($var);
?>

The result will be BCDE

String Prev Function

<?php
    $var="BCDE";
    echo $ib->strPrev(($var);
?>

The result will be ABCD