Skip to content

PHP-Framework/Wrapper for protobuf usage

License

Notifications You must be signed in to change notification settings

PineappleK3/PHP-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PHP-Framework

Installation

Clone or Download the repository and upload the /lib/ directory to your webserver. Include in your PHP file the autoload.php and start coding!

Example

<?php
	// Include the Library
	require_once('lib/autoload.php');

	// Create a new Instance of "Knuddels"
	$knuddels = new Knuddels();
	
	// Create a new bundled package for checknick-registration
	$packet = $knuddels->register()->checkNick('RegTesting123');
	// Send POST request with these Payload to the Server
	
	$decoded = Packet::decode($packet);
	// Server receives the Packet and will decode these
	
	// After that, you can access the data
	var_dump($decoded->getNick());
?>

About

PHP-Framework/Wrapper for protobuf usage

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages