https://github.com/oops-org-php/ereg-extension-wrapper
PHP ereg extension wrapper
https://github.com/oops-org-php/ereg-extension-wrapper
Last synced: 2 months ago
JSON representation
PHP ereg extension wrapper
- Host: GitHub
- URL: https://github.com/oops-org-php/ereg-extension-wrapper
- Owner: OOPS-ORG-PHP
- License: bsd-2-clause
- Created: 2016-08-01T09:27:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-17T12:36:10.000Z (over 7 years ago)
- Last Synced: 2024-09-21T13:27:53.068Z (9 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 9
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Wrapper for PHP ereg extension
===============================
[](https://raw.githubusercontent.com/OOPS-ORG-PHP/ereg-extension-wrapper/master/LICENSE)The ereg-wrapper api support ereg extension api, and was designed to work best as with ereg extension.
If you have PHP7 environment and must need removed ereg extension api, this is good choise.This APIs have been implemented using PHP [PCRE (Perl compatible regular expression, preg_*)](http://php.net/manual/en/book.pcre.php) internally.
## License
BSD 2-clause## Requirements
1. PHP 7.0.0 and after
## SYNOPSIS
***ereg*** : http://php.net/manual/en/function.ereg.php
```php
int ereg ( string $pattern , string $string [, array &$regs ] )
```***eregi*** : http://php.net/manual/en/function.eregi.php
```php
int eregi ( string $pattern , string $string [, array &$regs ] )
```***ereg_replace*** : http://php.net/manual/en/function.ereg-replace.php
```php
string ereg_replace ( string $pattern , string $replacement , string $string )
```***eregi_replace*** : http://php.net/manual/en/function.eregi-replace.php
```php
string eregi_replace ( string $pattern , string $replacement , string $string )
```***split*** : http://php.net/manual/en/function.split.php
```php
array split ( string $pattern , string $string [, int $limit = -1 ] )
```***spliti*** : http://php.net/manual/en/function.spliti.php
```php
array spliti ( string $pattern , string $string [, int $limit = -1 ] )
```***sql_regcase*** : http://php.net/manual/en/function.sql-regcase.php
```php
string sql_regcase ( string $string )
```## Example
```php```
## Composer
first, make composer.json as follow:
```json
{
"require": {
"joungkyun/ereg-extension-wrapper": "1.0.*"
}
}
```and, install ***ereg-extension-wrapper***
```bash
[user@host project]$ php composer.phpt install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing joungkyun/ereg-extension-wrapper (1.0.1): Downloading (100%)
Writing lock file
Generating autoload files
[user@host project]$
```and, write code as follow:
```php
```
## Credits
JoungKyun.Kim