A powerful, automated PHP-based article management system that creates beautiful, responsive HTML articles with automatic navigation updates across all pages.
- Auto-create HTML files - Generate fully responsive article pages instantly
- Auto-update navigation - Updates dropdown menu across ALL pages when you add/delete articles
- Auto-update homepage - Syncs articles grid on homepage automatically
- Markdown to HTML - Write in markdown, get beautiful HTML
- SEO-friendly - Proper meta tags, semantic HTML, and clean URLs
- Fully responsive - Works perfectly on desktop, tablet, and mobile
- Modern UI/UX - Beautiful gradient backgrounds, smooth animations
- Mobile hamburger menu - Touch-friendly navigation drawer
- Sticky navigation - Always accessible while scrolling
- Scroll-to-top button - Easy navigation for long articles
- Custom accent colors - Choose different colors per article
- Dark theme - Eye-friendly dark mode design
- Secure login system - Password-protected admin panel
- Session management - Automatic session handling
- Password hashing - Bcrypt password encryption
- Access control - Protected areas with authentication
- Mobile-first design approach
- Touch-optimized interactive elements
- Adaptive typography using clamp()
- Flexible grid layouts
- Optimized for all screen sizes (320px - 4K)
your-website/
├── login.php # Secure login page
├── admin.php # Admin interface (protected)
├── article-system.php # Core system functions
├── articles.json # Articles database (auto-created)
└── articles/ # Articles directory (auto-created)
├── index.html # Homepage
├── article-1.html # Generated articles
├── article-2.html
└── ...
- PHP 7.4 or higher
- Web server (Apache, Nginx, etc.)
- Write permissions on server
Upload these files to your server:
login.phpadmin.phparticle-system.php
chmod 755 login.php
chmod 755 admin.php
chmod 755 article-system.php
chmod 777 articles/ # Allow PHP to create filesThe default access code is: your-secure-code-here
To change it, generate a new hash:
<?php
echo password_hash('your-new-code', PASSWORD_DEFAULT);
?>Replace the hash in login.php:
$storedHash = '$2y$10$YOUR_NEW_HASH_HERE';- Go to:
https://yoursite.com/login.php - Enter your access code
- Start creating articles!
- Login to admin panel
- Click "Create Article" tab
- Fill in the details:
- Title: Your article headline
- Subtitle: Brief description
- URL Slug: Auto-generated from title (editable)
- Tag: Category/topic (e.g., "Technology")
- Accent Colors: Choose custom colors
- Write content in Markdown
- Click "Create Article"
- Done! File created and all pages updated
# Main Section Heading
This becomes a section in your article (appears in table of contents)
## Subsection Heading
Smaller heading within a section
**Bold text** for emphasis
*Italic text* for subtle emphasis
- Bullet point list
- Another item
> This is a blockquote
> Great for highlighting important information
`inline code` for technical terms
1. Numbered list
2. Second itemView Articles:
- Go to "Manage Articles" tab
- See all your published articles
- View live articles by clicking "View"
Delete Articles:
- Click "Delete" button next to article
- Confirm deletion
- File deleted + navigation auto-updated everywhere
Update Navigation:
- Go to "Settings" tab
- Click "Update All Articles Navigation"
- Manually refresh navigation if needed
Each article can have custom accent colors:
// In admin panel, use color pickers
Main Accent: #ff1744 (red)
Light Accent: #ff5983 (light red)Articles automatically appear in the dropdown:
<li class="dropdown">
<a href="#" class="dropdown-toggle">Articles <span class="arrow">▼</span></a>
<ul class="dropdown-menu">
<!-- Auto-populated -->
</ul>
</li>Edit article-system.php function generateArticleHTML() to modify:
- HTML structure
- CSS styles
- JavaScript behavior
- Meta tags
// Generate new hash
php -r "echo password_hash('your-strong-password', PASSWORD_DEFAULT);"
// Update in login.php
$storedHash = 'YOUR_NEW_HASH';Use .htaccess to protect admin area:
<Files "admin.php">
Require all denied
Require ip YOUR_IP_ADDRESS
</Files>Always access admin panel over HTTPS:
https://yoursite.com/login.php
Backup these regularly:
articles.jsonarticles/folder- All PHP files
articles.json stores article metadata:
{
"articles": [
{
"title": "Article Title",
"slug": "article-slug",
"subtitle": "Brief description",
"tag": "Category",
"created": "2026-01-08 01:07:18"
}
]
}When you CREATE an article:
- ✅ HTML file created in
/articles/ - ✅ Added to
articles.json - ✅ Navigation dropdown updated in ALL article pages
- ✅ Navigation dropdown updated in
articles/index.html - ✅ Homepage articles grid updated
When you DELETE an article:
- ✅ HTML file removed
- ✅ Removed from
articles.json - ✅ Navigation updated everywhere
- ✅ Homepage grid updated
- Backend: PHP 7.4+
- Frontend: HTML5, CSS3, JavaScript ES6+
- Styling: Custom CSS with CSS Variables
- Database: JSON file-based
- Authentication: PHP Sessions + Bcrypt
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- Mobile browsers (iOS Safari, Chrome Mobile)
- Lightweight (no external dependencies)
- Fast page generation (<1s)
- Optimized CSS (no frameworks)
- Minimal JavaScript
- SEO-optimized output
Solution:
# Check permissions
chmod 777 articles/
# Check if directory exists
ls -la articles/Solution:
- Go to Settings tab
- Click "Update All Articles Navigation"
- Check file permissions
Solution:
// Reset password hash in login.php
$storedHash = password_hash('new-password', PASSWORD_DEFAULT);Solution:
- Ensure
articles/index.htmlexists - Check
articles.jsonfor article entries - Manually update navigation from Settings
Input:
# Introduction
This is my first article about web development.
## Getting Started
Here are the basics you need to know:
- Learn HTML
- Learn CSS
- Learn JavaScript
> "The only way to learn is by doing" - AnonymousOutput: Beautiful HTML file with:
- Responsive layout
- Syntax highlighting
- Table of contents
- Mobile menu
- SEO tags
- Social sharing ready
Contributions welcome! Areas for improvement:
- Image upload support
- Rich text editor
- Article search
- Categories system
- Tags management
- Article scheduling
- Multi-user support
MIT License - feel free to use for personal or commercial projects.
Use consistent tags for better organization:
- "Technology"
- "Political Analysis"
- "Tutorial"
- "Opinion"
- Use hyphens, not underscores
- Keep it short (3-5 words)
- Include main keyword
- Example:
web-development-basics
# Backup articles
tar -czf articles-backup-$(date +%Y%m%d).tar.gz articles/
# Backup database
cp articles.json articles-backup-$(date +%Y%m%d).jsonEdit generated HTML to add custom styles in <style> block.
For issues or questions:
- Check troubleshooting section
- Review code comments in PHP files
- Test with simple markdown first
- Check file permissions
Future features planned:
- Rich text WYSIWYG editor
- Image management system
- Article preview before publish
- Draft/Published status
- Article revisions/history
- Bulk operations
- Export/Import articles
- Analytics integration
Created by Ruhban Abdullah
- Built for simple, automated article management
- Designed for developers who prefer markdown
- Optimized for modern web standards
Made with ❤️ from Kashmir
For more projects: developerruhban.com