Selçuk Sözlük - PHP Social Media Application
Selçuk Sözlük is a simple social media platform built using PHP, TailwindCSS and MySQL. It allows users to create and publish posts by categories and interact with other users.
- PHP
- Apache server
- MySQL Database
- SQL
- phpMyAdmin
All of these requirements can be completed at once by simply installing a server stack like
Wamp
orXampp
etc. (Xampp
is preferred)
To install Selçuk Sözlük, follow these steps:
- Clone the repository:
git clone https://github.com/BilalGumus/php-social-media.git
- Navigate to the project directory:
cd ./php-social-media
- Start a local Apache and MySQL development server.
- Import the
database.sql
file in theincludes
folder into phpMyAdmin. There is no need for any change in the .sql file. This will create the database required for the application to function. - Edit the
db_connect.php
file in thescripts
folder to create the database connection. Change the password and username to the ones being used within current installation ofphpMyAdmin
. There is no need to change anything else. - Open your web browser and visit
http://localhost/selcuk-sozluk
The database file already contains a lot of sample data and users. Most users in the database have the same password as "123456" except for admin. Although the admin & moderator user does not have any extra features in the project, admin password is set as "654321".
Therefore, you will have to create an account and manually go to the role_id
table in the database to change the role_id
of that account to `1``.
1 role id means a admin user 2 role id means a moderator user 3 role id means a regular user
Once the installation is complete, you can use PHP Social Media Application as follows:
- Register a new user account or log in with an existing account.
- Fill in the required details and click "Gönderiyi Paylaş" button to publish your post.
- Explore the different categories and view other users posts.
- Leave comments and like on posts, follow other users and engage with the community.
Contributions to PHP Social Media Application are welcome! If you have any bug reports, feature requests, or improvements, please submit them as issues or create a pull request.
PHP Social Media Application is released under the MIT License.