Download the PHP
package xnan/hydra without Composer
On this page you can find all versions of the php package
xnan/hydra. 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.
Simple persistent data structures for small projects
The aim is solve the common demand for many php web projects to have some kind of
permanent state shared within an application which cannot be accomplished
very well using session object (either because implies an all-or-nothing heavy object
serialization or because the state is required to be shared between user session boundaries.
Also, state might be needed to persist throughout reboots.
A usual approach to solve this problems is using a relational database but for rapid prototyping
or small project it adds a big overhead going back and forth between queries and relational structure
definitions. This library with some simple passive persistent data structures, all native,
might offer a more confortable solution.
installing Hydra
Setting up the library
Using Maps
Using Matrixes
Supported data structures
Currently, these are the supported data structures:
Matrix
Map
Object references
Hydra properties
Passive library
it does not require to setup any service or deamon, it runs only when called.
Simple object storage
object values assigned to persistent maps or references are stored by standard php serialization.
Thread safe storage
at storage time, objects are locked for exclusive write.
No setup policy
data structures are meant to adjust its properties according to usage, provide a reasonable default
setting is considered a must.
Data structures storage
All structures are stored in folder content/Hydra in php serialized form.
For Matrix structure, a more compact binary storage is used.
Requiresphp Version
^7.2.5 || ^8.0 ext-json Version
* xnan/nano Version
0.9.*
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 xnan/hydra 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.