Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
June 18, 2017 18:54
June 15, 2017 12:28
June 15, 2017 10:40
June 14, 2017 23:23
June 14, 2017 23:23
June 15, 2017 12:28
June 14, 2017 23:23
July 18, 2016 23:26
June 18, 2017 18:54
June 18, 2017 18:54
June 15, 2017 12:28
June 18, 2017 18:54
March 12, 2015 23:03


A decentralized, peer-to-peer, encrypted chat in PHP. If nobody on the Internet cares about security and privacy we must take care about ourselves.

Why this project?

Because we need to encrypt and secure the Internet. The Internet is broken and we need to fix it. Thanks people like Edward Snowden we know today that the NSA (and also other intelligence agencies too) operates a global surveillance on citizens. We can't loose our right of freedom, our right of privacy to centralized governmental authorities. Now it's our move. It's time to fight back!

I also like the Bitmessage project. But building thinks by myself feels like I can contribute to the Internet. And coding this with PHP because it's an easy-to-learn programming language and every one can contribute to this project.


  • Peer-to-peer instant messaging.
  • Peer-to-peer offline messaging. Offline means when the recipient is offline.
  • Decentralized: See DHT.
  • Point-to-point encryption using SSL.
  • Addressbook: manage all conversation partners.
  • IMAP interface for fetching new messages.
  • SMTP interface for sending messages.
  • Send P2P random messages.


  1. Clone

     git clone
  2. Change to your phpchat directory and run

  3. You need to forward TCP port 25000 (default) on your modem to your computer. After the chat has been started once there will be a settings.yml. Edit this file to change the incoming port. Change the settings.yml only when PHPChat is not running.

  4. Start:




    To run PHPChat with an MUA interface run


    To run PHPChat only in daemon mode:



  • Some tasks are commented with NOT_IMPLEMENTED.
  • TODO are to be complete the PHP Code Sniffer tests before releasing a new version.


You're welcome to contribute to this project. Fork this project at You should read GitHub's How to Fork a Repo.



Copyright (C) 2014 Christian Mayer

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see


A decentralized, peer-to-peer, encrypted chat in PHP.







No packages published