Download the PHP package mariopenterman/protobuf-plugin without Composer

On this page you can find all versions of the php package mariopenterman/protobuf-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package protobuf-plugin

Protobuf for PHP

Build Status Coverage Status

Protobuf for PHP is an implementation of Google's Protocol Buffers for the PHP language, supporting its binary data serialization and including a protoc plugin to generate PHP classes from files.

Installation

If you wish to compile definitions to PHP, you will need to install Google's Protocol Buffers from your favorite package manager or from source. This plugin currently supports protobuf 2.3.0. or later.

Note: Google's Protocol Buffers and is not a runtime requirement for protobuf-php/protobuf, It is only necessary if you wish to compile your definitions to PHP using protobuf-php/protobuf-plugin.

Installing Google's Protocol Buffers

Make sure you have available in the user's path:

Note: For more information on how to install/compile Google's Protocol Buffers see : https://github.com/google/protobuf

Composer install

To install the PHP plugin run the following composer commands:

Defining Your Protocol Format

To create your address book application, you'll need to start with a file. The definitions in a file are simple: you add a message for each data structure you want to serialize, then specify a name and a type for each field in the message. Here is the file that defines your messages, .

As you can see, the syntax is similar to C++ or Java. Let's go through each part of the file and see what it does. The file starts with a package declaration, which helps to prevent naming conflicts between different projects. In PHP, the package name is used as the PHP namespace unless you have explicitly specified a , as we have here. Even if you do provide a , you should still define a normal package as well to avoid name collisions in the Protocol Buffers name space as well as in non PHP languages.

You'll find a complete guide to writing files – including all the possible field types – in the Protocol Buffer Language Guide. Don't go looking for facilities similar to class inheritance, though – protocol buffers don't do that.

Compiling Your Protocol Buffers

Now that you have a , the next thing you need to do is generate the classes you'll need to read and write (and hence and ) messages. To do this, you need to run the protocol buffer plugin on your .

In this case:

This generates the following PHP classes in your specified destination directory

Note: For more information on how to use the generated code see : protobuf-php/protobuf


All versions of protobuf-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
protobuf-php/protobuf Version >=0.1
protobuf-php/google-protobuf-proto Version >=0.1
zendframework/zend-code Version ^2.6
psr/log Version ^1.0
symfony/console Version ^5.0
symfony/process Version ^5.0
doctrine/inflector Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mariopenterman/protobuf-plugin contains the following files

Loading the files please wait ....