Download the PHP package graphene/graphene without Composer
On this page you can find all versions of the php package graphene/graphene. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package graphene
Graphene [Barium] beta
This framework allows you to create Action Oriented REST services with less lines of code, like this:
Install Graphene with composer
Graphene is can be installed using composer:
after install you can bootstrap you application doing
this command extracts from downloaded graphene library:
- index.php Contains simple graphene launcher
- settings.php Contains basic settings for logging and persistence
- cli.php Simple CLI adapter for graphene
- .htaccess Apache file with url rewriting and redirecting to
index.php
- web.config same with
.htaccess
, for windows ISS
Graphene settings file
[work in progress]
Action approach
Any http request to Graphene matches an "action". In graphene action mapping is quick and smart, ball actions are collected in separate modules.
Defining module
you can define your module creating folder in your moduleUrl, definded in settings.json.
in this case we have created a module named "com.profile", with "profiles" as namespace. this module does not have any action.
Creating actions
now we can ceate a simple action "HELLO_WORLD", mapping that on request GET host/profiles/hello you can add this action creating this entry in your module manifest:
and creating profiles.HELLO_WORLD.php
file in actions
folder like this:
Model
Graphene supports model checking and storage doc work in progress
Scaffolding
When you create a new module, we recomends this directory structure for your models and actions
Wiki
we are very excited that you want to use Graphene therefore we are working so that you can use it to its full potential by writing up to date wiki. Go to Graphene wiki
HowTo
Hello world tutorial