PHP Classes

PHP Chat Application with API: Exchange user messages on a page or using an API

Recommend this page to a friend!
  Info   View files Example   View files View files (33)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-12-08 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 82 This week: 2All time: 10,012 This week: 204Up
Version License PHP version Categories
chatapp 1.0.0Custom (specified...5PHP 5, Web services, Chat, Applications
Description 

Author

This package can exchange user messages on a page or using an API.

It provides an application to let users send messages that can be viewed by other users who can also reply.

Currently, the application supports:

- Exchange messages via chat rooms or use private messages sent to specific users

- Deleting messages

- Show all messages exchanged between users in chat rooms or privately

- Show the list of chat rooms

- Add a new chat room

- Change chat room name

- Delete a chat room

- Show the list of users that are online

Picture of Faris AL-Otabi
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

 

Example

<?php include_once 'session.php'; ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ghostly - Home</title>
    <?php include_once 'components/style.php'; ?>
</head>

<body>

    <?php include_once 'components/navbar.php'; ?>

    <input id="room_id" value="<?php echo $_SESSION['room_id']; ?>" hidden />
    <input id="user" value="<?php echo $_SESSION['username']; ?>" hidden />

    <div class="container pt-4">
        <div class="row justify-content-center">
            <div class="col-lg-10 col-md-12 col-sm-12">
                <div id="online"></div>

                <div id="chat"></div>

                <div class="pt-3">
                    <form method="POST" id="Messagebox">
                        <textarea id="message" class="form-control" placeholder="Please Type a message to send"></textarea>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div class="pt-3"></div>

    <?php include_once 'components/script.php'; ?>
<script src='inputEmoji.js'></script>
    <script src="script.js"></script>
</body>

</html>


Details

ChatApp

Simple PHP Chat System

Features

  1. Auth System
  2. Emojis
  3. Clean Interface
  4. Responsive
  5. Rooms
  6. Encryption
  7. Themes
  8. Private Chat

Screenshot

![](https://i.imgur.com/Bz2ZEvU.png)

How to install

  1. Run `$ composer update `
  2. Update config.php
  3. Run install.php
  4. Enjoy

Default Credentials

  1. Username: admin
  2. Password: admin

License

MIT

Copyright

farisc0de | 2022


  Files folder image Files  
File Role Description
Files folder imageapp (15 files, 4 directories)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:82
This week:2
All time:10,012
This week:204Up