2017 © Pedro PelĂĄez
 

library libphp

General useful PHP7 Library

image

sgc-fireball/libphp

General useful PHP7 Library

  • Thursday, May 25, 2017
  • by sgc-fireball
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

HRDNS libphp Build Status

This branch/lib is only for PHP7., (*1)

Installation

Install the latest version with, (*2)

composer require sgc-fireball/libphp

Features

  • Event management
  • PCNTL Signal handling
  • Color convertions
    • rgb2hsv
    • rgb2hsl
    • rgb2hex
    • rgb2cmyk
    • rgb2xterm
    • hsv2rgb
    • hsv2hex
    • hsv2hsl
    • hsv2cmyk
    • hsl2rgb
    • hsl2hex
    • hsl2cmyk
    • hsl2hsv
    • hex2rgb
    • hex2hsl
    • hex2cmyk
    • hex2hsv
    • cmyk2rgb
    • cmyk2hsl
    • cmyk2hex
    • cmyk2hsv
    • xterm2cmyk
    • xterm2hex
    • xterm2hsl
    • xterm2hsv
    • xterm2rgb
    • xyb2rgb (testing!!!)
    • rgb2xyb (testing!!!)
  • FTP wrapper
  • generic TCP client
  • generic UDP client
  • SSDP client (Simple Service Discovery Protocol)
  • generic TCP server
  • generic UDP server
  • WebSocket Server
  • SSDP server (Simple Service Discovery Protocol)
  • SSL server validator (using openssl)
  • file wrapper and multiprocess safe file wrapper
  • geoip for ipv4 and ipv6 (based on country codes via ripe database)
  • interval manager (setinterval in js)
  • timer manager (settimeout in js)
  • linux daemon component
  • multi processing manager with processlist administration
  • multiprocessing shared storage via SHM or filesystem.
  • fifo buffer
  • filo buffer
  • ring buffer
  • csv wrapper
  • ipv4 and ipv6 calculation
    • subnetting and supernetting
  • generic struct object
  • url decoder and encoder
  • xml decoder and encoder
  • php based incoming network sniffer (icmp, tcp, udp)
  • homematic binrpc decoder/encoder
  • redis message queue

Examples

TCP Echo Server

Start the TCP Echo Server in Console 1:, (*3)

cd ./libphp
php bin/example.php example:echoserver --help
php bin/example.php example:echoserver --listen 127.0.0.1 --port 12345

Start another Console to connect to TCP Echo Server:, (*4)

telnet 127.0.0.1 12345

SSL Verify

A single console command to run ssl verification:, (*5)

cd ./libphp
php bin/sslverify.php --host=www.google.com --port=443

Tests

Run all tests

cd ./libphp
composer test

Test it with PHP Code Sniffer

cd ./libphp
bin/phpcs

Test it with PHPUnit

cd ./libphp
bin/phpunit

Test it with PHP Copy/Paste Detector

cd ./libphp
bin/phpcpd src/

Test it with PHP Mess Detector

cd ./libphp
bin/phpmd src/ text cleancode,codesize,controversial,design,naming,unusedcode --suffixes php

About

Author

Richard HĂŒlsberg - rh+github@hrdns.de - https://www.hrdns.de, (*6)

The Versions

03/01 2016

v0.0.1

0.0.1.0 https://www.hrdns.de

General useful PHP Library

  Sources   Download

The Requires

  • php >=5.5.9

 

The Development Requires

php library