kraken-php/demo-chat

Kraken Demo Chat Application

Installs: 406

Dependents: 0

Suggesters: 0

Security: 0

Stars: 48

Watchers: 6

Forks: 15

Open Issues: 5

Type:project

v0.3.0 2016-09-30 17:13 UTC

This package is not auto-updated.

Last update: 2024-03-16 16:58:49 UTC


README

Total Downloads Latest Stable Version Latest Unstable Version License Gitter @kraken_php on Twitter

Note: This repository contains pre-configured distributed chat application based on Kraken Framework.


15938282?v=3&s=150

Description

This repository demonstrates exemplary implementation of chat using HTTP and Websocket servers in PHP using Kraken Framework components.

Architecture

68747470733a2f2f646f63732e676f6f676c652e636f6d2f75633f6578706f72743d646f776e6c6f61642669643d30425f4656754231306b506a56576c5a4d654446526144426f544530

Screenshots

68747470733a2f2f646f63732e676f6f676c652e636f6d2f75633f6578706f72743d646f776e6c6f61642669643d30425f4656754231306b506a564f4331554d31687661564e5053324d

Requirements

  • PHP-5.5, PHP-5.6 or PHP-7.0+,
  • Pthreads extension enabled (only if you want to use threading),
  • UNIX or Windows OS.

Installation and Official Documentation

To install this application skeleton, please go to desired location to store project, then call composer:

composer create-project --prefer-dist kraken-php/demo-chat .

Documentation for the framework can be found in the official documentation page.

Starting Project

Basic Start

To start project, first run kraken.server instance.

$> php kraken.server

Then, check if connection is working in another terminal window:

$> php kraken server:ping

If everything works correctly, as final step run the application using:

$> php kraken project:create

After project has been created successfully, go to http://localhost:6080 address in your browser and you should be able to see and use examplary chat.

To close whole project, use:

$> php kraken project:destroy

If you have problems with configuring console-server connection, you can also try alternative start.

Alternative Start

To start project directly, without console support, use:

$> php ./data/autorun/kraken.process undefined HttpBroker HttpBroker

WARNING This method will be deprecated in upcoming ver 0.4.

Contributing

This library is pre-configured project application for Kraken Framework. To make contributions, please go to framework repository.

License

Kraken Framework is open-sourced software licensed under the MIT license. The documentation is provided under FDL-1.3 license.