Coder Social home page Coder Social logo

demo-chat's Introduction

Kraken Demo Application - Chat

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.


Description

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

Architecture

Screenshots

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.

$> kraken.server

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

$> kraken server:ping

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

$> 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:

$> 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.