How amanprojects-ops/php-news-website works
ConnectBihar is a PHP/MySQL news publishing CMS. Readers enter through the public portal, browse or search published stories, and open an article; administrators authenticate, manage stories, categories, staff, and site settings, with role-based access described in the README. The public router resolves clean URLs to category, author, search, or article views. The graph also captures visitor tracking, installation, and configurable email. Public routing and selected handlers are supported by sampled source; other major capabilities and their paths are based on the README and file tree, so uncertain internal wiring is omitted.
Main entry points: config.php MySQL Database · router.php URL Router · functions.php Shared Functions · index.php News Feed
Components 22
Public Portal
- URL Router
router.php - News Feed
index.php - Category View
category.php - Author View
author.php - Article Search
search.php - Article Detail
single.php - Contact Page
contactus.php
Editorial Admin
- Admin Login
admin/index.php - Admin Dashboard
admin/dashboard.php - Article Management
admin/app/app.php - Category Management
admin/app/app.php - Staff Management
admin/app/app.php - Website Settings
admin/manage-website.php
Platform Services
- Visitor Tracking
visitoer-counter.php - Shared Functions
database/functions.php - MySQL Database
config.php - SMTP Mailer
database/Mailer.php
Initial Setup
- Setup Wizard
install/index.php
Other components
- Readers
- Administrators
- SMTP Server
- Site Operator
Connections 30
- Readers → URL Router: requests URL
- URL Router → Category View: includes category
- URL Router → Author View: includes author
- URL Router → Article Search: includes search
- URL Router → Article Detail: includes article
- Readers → News Feed: opens portal
- Readers → Contact Page: opens contact
- News Feed → MySQL Database: queries stories
- Category View → MySQL Database: queries stories
- Author View → MySQL Database: queries stories
- Article Search → MySQL Database: searches stories
- URL Router → MySQL Database: resolves slugs
- Article Detail → MySQL Database: loads article
- News Feed → Shared Functions: formats links
- Category View → Shared Functions: formats links
- Author View → Shared Functions: formats links
- Article Search → Shared Functions: formats links
- Administrators → Admin Login: signs in
- Admin Login → MySQL Database: checks credentials
- Admin Login → Admin Dashboard: redirects after login
- Administrators → Admin Dashboard: manages portal
- Admin Dashboard → MySQL Database: reads metrics
- Article Management → MySQL Database: writes articles
- Category Management → MySQL Database: writes categories
- Staff Management → MySQL Database: writes users
- Website Settings → MySQL Database: updates settings
- Visitor Tracking → MySQL Database: records visits
- Site Operator → Setup Wizard: runs setup
- Setup Wizard → MySQL Database: configures database
- SMTP Mailer → SMTP Server: sends email