PHP: simple network library