Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/furiosojack/sorthip
Ordena lista de direcciones ip y subredes | Sort list ip addresses and subnets
https://github.com/furiosojack/sorthip
ip ipaddress sort sorting sorting-algorithms subnet subnets subredes
Last synced: 16 days ago
JSON representation
Ordena lista de direcciones ip y subredes | Sort list ip addresses and subnets
- Host: GitHub
- URL: https://github.com/furiosojack/sorthip
- Owner: FuriosoJack
- License: mit
- Created: 2017-12-11T16:09:03.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-13T16:32:07.000Z (about 7 years ago)
- Last Synced: 2024-11-18T09:39:02.320Z (about 1 month ago)
- Topics: ip, ipaddress, sort, sorting, sorting-algorithms, subnet, subnets, subredes
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# License
El codigo de licencia debe seguirse al pie de la letra, si usted utiliza esta libreria los derechos de autor deben estar incluidos en todas la copias.
Para mas informacion la puede encontra en el archivo LICENSE.txt.
# SorthIP
Ordena lista de direcciones ip y subredes | Sort list ip addresses and subnets## Installation
```bash
$ php composer require furiosojack/sorthip=^0.0
```OR
add to your `composer.json`
```json
{
"require": {
"furiosojack/sorthip": "^0.0"
}
}
```## Examples
```php
$ips = [
'255.168.0.1',
'172.6.0.1',
'172.0.0.1',
'201.0.0.0'
];
$sotIp = new SorthIP($ips);echo $sotIp->orderAsc();
```result
```json
array:4 [▼
0 => "255.168.0.1"
1 => "201.0.0.0"
2 => "172.6.0.1"
3 => "172.0.0.1"
]
```