Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@
"symfony/process": "3.4.17",
"symfony/routing": "3.4.17",
"symfony/translation": "3.4.17",
"microsoft/azure-storage-blob": "1.2.0" }
"microsoft/azure-storage-blob": "1.2.0",
"rlanvin/php-ip": "^1.0" }
}
41 changes: 39 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function isClassMapAuthoritative()
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
}

/**
Expand Down
69 changes: 52 additions & 17 deletions composer/LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,56 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Composer
Upstream-Contact: Jordi Boggiano <[email protected]>
Source: https://github.com/composer/composer

Copyright (c) Nils Adermann, Jordi Boggiano
Files: *
Copyright: 2016, Nils Adermann <[email protected]>
2016, Jordi Boggiano <[email protected]>
License: Expat

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
Files: src/Composer/Util/TlsHelper.php
Copyright: 2016, Nils Adermann <[email protected]>
2016, Jordi Boggiano <[email protected]>
2013, Evan Coury <[email protected]>
License: Expat and BSD-2-Clause

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
License: BSD-2-Clause
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
.
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
7 changes: 7 additions & 0 deletions composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,13 @@
'ID3Parser\\getID3\\getid3_exception' => $vendorDir . '/lukasreschke/id3parser/src/getID3/getid3_exception.php',
'ID3Parser\\getID3\\getid3_handler' => $vendorDir . '/lukasreschke/id3parser/src/getID3/getid3_handler.php',
'ID3Parser\\getID3\\getid3_lib' => $vendorDir . '/lukasreschke/id3parser/src/getID3/getid3_lib.php',
'IP' => $vendorDir . '/rlanvin/php-ip/src/IP.php',
'IPBlock' => $vendorDir . '/rlanvin/php-ip/src/IPBlock.php',
'IPBlockIterator' => $vendorDir . '/rlanvin/php-ip/src/IPBlockIterator.php',
'IPv4' => $vendorDir . '/rlanvin/php-ip/src/IPv4.php',
'IPv4Block' => $vendorDir . '/rlanvin/php-ip/src/IPv4Block.php',
'IPv6' => $vendorDir . '/rlanvin/php-ip/src/IPv6.php',
'IPv6Block' => $vendorDir . '/rlanvin/php-ip/src/IPv6Block.php',
'Icewind\\Streams\\CallbackWrapper' => $vendorDir . '/icewind/streams/src/CallbackWrapper.php',
'Icewind\\Streams\\CountWrapper' => $vendorDir . '/icewind/streams/src/CountWrapper.php',
'Icewind\\Streams\\Directory' => $vendorDir . '/icewind/streams/src/Directory.php',
Expand Down
7 changes: 7 additions & 0 deletions composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,13 @@ class ComposerStaticInit2f23f73bc0cc116b4b1eee1521aa8652
'ID3Parser\\getID3\\getid3_exception' => __DIR__ . '/..' . '/lukasreschke/id3parser/src/getID3/getid3_exception.php',
'ID3Parser\\getID3\\getid3_handler' => __DIR__ . '/..' . '/lukasreschke/id3parser/src/getID3/getid3_handler.php',
'ID3Parser\\getID3\\getid3_lib' => __DIR__ . '/..' . '/lukasreschke/id3parser/src/getID3/getid3_lib.php',
'IP' => __DIR__ . '/..' . '/rlanvin/php-ip/src/IP.php',
'IPBlock' => __DIR__ . '/..' . '/rlanvin/php-ip/src/IPBlock.php',
'IPBlockIterator' => __DIR__ . '/..' . '/rlanvin/php-ip/src/IPBlockIterator.php',
'IPv4' => __DIR__ . '/..' . '/rlanvin/php-ip/src/IPv4.php',
'IPv4Block' => __DIR__ . '/..' . '/rlanvin/php-ip/src/IPv4Block.php',
'IPv6' => __DIR__ . '/..' . '/rlanvin/php-ip/src/IPv6.php',
'IPv6Block' => __DIR__ . '/..' . '/rlanvin/php-ip/src/IPv6Block.php',
'Icewind\\Streams\\CallbackWrapper' => __DIR__ . '/..' . '/icewind/streams/src/CallbackWrapper.php',
'Icewind\\Streams\\CountWrapper' => __DIR__ . '/..' . '/icewind/streams/src/CountWrapper.php',
'Icewind\\Streams\\Directory' => __DIR__ . '/..' . '/icewind/streams/src/Directory.php',
Expand Down
39 changes: 39 additions & 0 deletions composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2519,6 +2519,45 @@
],
"description": "A lightweight implementation of CommonJS Promises/A for PHP"
},
{
"name": "rlanvin/php-ip",
"version": "v1.0.1",
"version_normalized": "1.0.1.0",
"source": {
"type": "git",
"url": "https://github.com/rlanvin/php-ip.git",
"reference": "03e507114b95e2d3a9b9621dc6fb583401afbf5e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rlanvin/php-ip/zipball/03e507114b95e2d3a9b9621dc6fb583401afbf5e",
"reference": "03e507114b95e2d3a9b9621dc6fb583401afbf5e",
"shasum": ""
},
"require": {
"ext-gmp": "*",
"php": ">=5.3.0"
},
"time": "2015-06-26T06:50:37+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "IPv4/IPv6 manipulation library for PHP",
"homepage": "https://github.com/rlanvin/php-ip",
"keywords": [
"IP",
"ipv4",
"ipv6"
]
},
{
"name": "sabre/dav",
"version": "3.2.3",
Expand Down
3 changes: 3 additions & 0 deletions rlanvin/php-ip/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.sublime*
vendor
test.php
21 changes: 21 additions & 0 deletions rlanvin/php-ip/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Rémi Lanvin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
58 changes: 58 additions & 0 deletions rlanvin/php-ip/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# PHP IP Library

IPv4/IPv6 manipulation library for PHP inspired by Python [ipaddress](https://docs.python.org/dev/library/ipaddress.html).

[![Build Status](https://travis-ci.org/rlanvin/php-ip.svg?branch=master)](https://travis-ci.org/rlanvin/php-ip)
[![Latest Stable Version](https://poser.pugx.org/rlanvin/php-ip/v/stable)](https://packagist.org/packages/rlanvin/php-ip)
[![Total Downloads](https://poser.pugx.org/rlanvin/php-ip/downloads)](https://packagist.org/packages/rlanvin/php-ip)

## Requirements

- PHP >= 5.2
- IPv6 support enabled
- GMP extension (www.php.net/manual/en/book.gmp.php)

## Installation

### Option 1 (PHP <= 5.2)

- [Download the single-file version](https://raw.githubusercontent.com/rlanvin/php-ip/master/ip.lib.php)
- `include` or `require` it
- Enjoy!

### Option 2 (PHP >= 5.3)

The recommended way is to install the lib [through Composer](http://getcomposer.org/).

Just add this to your `composer.json` file (change the version by the release you want, or use `dev-master` for the development version):

```JSON
{
"require": {
"rlanvin/php-ip": "1.*"
}
}
```

Then run `composer install` or `composer update`.

Now you can use the autoloader, and you will have access to the library:

```php
<?php
require 'vendor/autoload.php';
```

Caution: This library is compatible with PHP 5.2, therefore it is not namespaced.

## Documentation

Complete doc is available in [the wiki](https://github.com/rlanvin/php-ip/wiki).

## Disclaimer

I built this library for a project running PHP 5.2 (yep that's old). PHP 5.2 doesn't support late static binding, traits, namespaces and the like. So that explains some of the quirks of the design.

## License

This library is released under the MIT License.
11 changes: 11 additions & 0 deletions rlanvin/php-ip/combine.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

# Combine all files into one library file easy to include

cat ./src/IP.php
tail -n +2 ./src/IPv4.php
tail -n +2 ./src/IPv6.php
tail -n +2 ./src/IPBlock.php
tail -n +2 ./src/IPv4Block.php
tail -n +2 ./src/IPv6Block.php
tail -n +2 ./src/IPBlockIterator.php
15 changes: 15 additions & 0 deletions rlanvin/php-ip/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "rlanvin/php-ip",
"type": "library",
"description": "IPv4/IPv6 manipulation library for PHP",
"keywords": ["ip","ipv4","ipv6"],
"homepage": "https://github.com/rlanvin/php-ip",
"license": "MIT",
"require": {
"php": ">=5.3.0",
"ext-gmp": "*"
},
"autoload": {
"classmap": ["src/"]
}
}
Loading