Download the PHP package phonetworks/pho-kernel without Composer

On this page you can find all versions of the php package phonetworks/pho-kernel. 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 pho-kernel

pho-kernel

A simple microkernel implementation with Twitter-like functionality by default. You may change the functionality simply by copy/pasting a new recipe from the presets directory. Check out "Working with Custom Recipes" below the README file for more information.

Requirements

The default pho-kernel requires:

You may also test pho-kernel by using Vagrant. Check out "Testing" for more information.

Pho-Kernel used to depend on Neo4j Server 3.1+ for indexing. It no longer does as of version 3.0. But you may still use it if you prefer more advanced Cypher queries.

If you will use Neo4J for indexing, make sure you change your .env file to include INDEX_TYPE="neo4j" instead of INDEX_TYPE ="redis"

Testing

Testing allows you to get a feel of pho-kernel without bloating your system with servers such as Redis and Neo4j. However, you would still need to have Vagrant installed.

Once you have Vagrant, just type in the following in the directory where pho-kernel is installed:

Now you can play with the kernel. Check out "Getting Started" for more information.

Install

The recommended way to install pho-kernel is through composer.

Let's say, you want to install a kernel under a directory called . Here's what you type in the terminal:

This will install pho-kernel as well as its dependencies. Once installed, read/edit the bootstrapper script kernel.php. The sole purpose of the bootstrapper script is

You will also need to set up a .env file to instruct the kernel about the services to use. A sample .env file is included as . Just copy/paste it as .env to get started with the basics.

Getting Started

  1. Make sure your .env file is functional; addressing your servers properly.
  2. Run on your terminal to switch to PHP shell. Then,

Working with Custom Recipes

If you'd like the kernel to run on a custom recipe, you must:

  1. Clone this repository.
  2. Change the composer.json file and replace with your custom recipe repo.
  3. Run to finish up with dependencies.
  4. Follow the steps described in the "Getting Started" section.

The presets directory comes with custom composer.json files that you can copy/paste on the existing one. This could enable you to run a Facebook or Twitter clone in a few simple steps.

However, if your goal is to run a completely custom recipe, then first of all, you need to:

  1. Form that recipe (possibly by cloning one of the existing ones in the https://github.com/pho-recipes repo).
  2. Make your recipe a composer package by uploading it to https://packagist.org
  3. Replace with your custom recipe repo in composer.json
  4. Run to finish up with dependencies.
  5. Follow the steps described in the "Getting Started" section.

The kernel.php file

If you are running pho-kernel on a custom set of compiled pgql files, make sure:

  1. The variables in Kernel configs (as shown by in kernel.php) have a proper set of "graph" and "user" classes set.
  2. Before booting up the kernel, a custom founder object is initialized and passed as an argument to the method.

License

MIT, see LICENSE.


All versions of pho-kernel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
phonetworks/pho-microkernel Version dev-master
pho-recipes/basic Version dev-master
pho-adapters/storage-filesystem Version dev-master
pho-adapters/database-redis Version dev-master
pho-adapters/events-local Version dev-master
pho-adapters/index-redis Version dev-master
vlucas/phpdotenv Version ^2.4
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 phonetworks/pho-kernel contains the following files

Loading the files please wait ....