Download the PHP
package phpflo/phpflo-fbp without Composer
On this page you can find all versions of the php package
phpflo/phpflo-fbp. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
Flowbased programming protocol (FBP) config file loader, using the FBP domain specific language (DSL).
Introduction
This library allows you to load and parse configuration for your phpflo project. It also works standalone if you want to convert your old JSON configs to FBP spec.
Supported config formats are JSON (.json), YAML (.yml) and FBP (.fbp), output is an object of type FbpDefinition. This allows you to output your parsed content in different formats, ranging from array over FBP, JSON to YAML.
Code Samples
Basic usage:
You can load JSON, YAML and FBP that way.
Parser by itself:
Dump your flow to a format:
The definition has following schema:
FBP DSL defintions
If you want to write definition files, here are the rules:
General syntax:
All elements are case sensitive
The parentheses at the end of a process definition are mandatory (even if empty):
Process names are w+
Port names can be [a-zA-Z_]
Each line determines a new chain of events, meaning at least two processes with two connecting ports, separated by a " -> " like
Otherwise there is a
For better understanding, the whole RegEx used for definition examination is:
Comments:
You can add comments and empty lines for better readability and documentation. If you have a comment in the first line, it will be used as name of the definition.
Initializer:
You can have initial values for a graph:
Multiple definitions:
You can have a complete chain of definitions in one line to enhance visibility of a chain of events:
Requiresphp Version
>=7.0.0 symfony/yaml Version
>=2.7 <=4.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 phpflo/phpflo-fbp contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.