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  
Name: Faris AL-Otabi <contact>
Classes: 12 packages by
Country: Saudi Arabia Saudi Arabia
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

  Files folder image Files  /  app  
File Role Description
Files folder imageapi (1 file)
Files folder imagecomponents (3 files)
Files folder imagelogic (3 files)
Files folder imagesrc (6 files, 1 directory)
  Accessible without login Plain text file composer.json Data Auxiliary data
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file inputEmoji.js Data Auxiliary data
  Accessible without login Plain text file install.php Aux. Auxiliary script
  Accessible without login Plain text file login.php Example Example script
  Accessible without login Plain text file logout.php Example Example script
  Accessible without login Plain text file private.js Data Auxiliary data
  Accessible without login Plain text file private.php Aux. Auxiliary script
  Accessible without login Plain text file register.php Example Example script
  Accessible without login Plain text file rooms.js Data Auxiliary data
  Accessible without login Plain text file rooms.php Example Example script
  Accessible without login Plain text file script.js Data Auxiliary data
  Accessible without login Plain text file session.php Example Example script
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  app  /  api  
File Role Description
  Accessible without login Plain text file handler.php Example Example script

  Files folder image Files  /  app  /  components  
File Role Description
  Accessible without login Plain text file navbar.php Aux. Auxiliary script
  Accessible without login Plain text file script.php Aux. Auxiliary script
  Accessible without login Plain text file style.php Aux. Auxiliary script

  Files folder image Files  /  app  /  logic  
File Role Description
  Accessible without login Plain text file auth.php Example Example script
  Accessible without login Plain text file install.php Example Example script
  Accessible without login Plain text file register.php Example Example script

  Files folder image Files  /  app  /  src  
File Role Description
Files folder imageMigration (3 files)
  Plain text file Auth.php Class Class source
  Plain text file Database.php Class Class source
  Plain text file Message.php Class Class source
  Plain text file Room.php Class Class source
  Plain text file User.php Class Class source
  Plain text file Utility.php Class Class source

  Files folder image Files  /  app  /  src  /  Migration  
File Role Description
  Plain text file Migration.php Class Class source
  Plain text file Options.php Class Class source
  Plain text file Types.php Class Class source

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