janoszen/ipv6utils

This package is abandoned and no longer maintained. No replacement package was suggested.

IPv6 utilities for PHP

1.0.0 2014-11-26 13:09 UTC

This package is auto-updated.

Last update: 2020-09-11 17:53:09 UTC


README

The aim of this project is to provide an easily usable interface to IPv6 addresses and DNS queries. This code is written to help the wide spread implementation of IPv6 and is therefore available under a number of free / open source licenses. (See below for details.)

Working with the code

Working with the code is simple. You need to put it into whatever framework you are using and autoload the classes. It comes down to two classes:

  • INET4Address - This is your IPv4 address.
  • INET6Address - This is your IPv6 address.

More documentation: http://github.janoszen.com/PHPIPv6Utils/

Coding standards

The rules are pretty simple:

  • All code is to be indented by exactly one tab per level. (Sorry space-fans, the tab character has been working in all editors for over a decade now.)
  • All opening curly brackets are to be written on the same line as the statement before it.
  • Use spaces before opening brackets, but not after them.
  • Use spaces before and after the equals sign.
  • No lines longer, than 120 characters.
  • No magic! Clean, readable code!
  • By the penalty of public harassment comment and unit test your code!

Contributing

If you have ideas for improvement, please submit an issue. If you have code to contribute, fork my project and then submit a pull request. I will attend to it as soon as possible.

By submitting a pull request, you agree, that all contributed code will be available under the terms of the copyright notice below. You grant the original author (János Pásztor) unrevocable rights to re-license the code under the terms of any open source license acknowledged as such by the Open Source Initiative.

Copyright

All original code in the src and tests directory is copyrighted by me (János Pásztor). All code contributed via GitHub pull requests is copyrighted by the original author.

All code in this repository is freely available under the terms of one of the following licenses:

  • MIT License
  • BSD Licence
  • GNU General Public License v 2.0 or newer
  • GNU Lesser General Public License v 2.1 or newer

Your choice. :)