# MASTER DEVELOPMENT PROMPT
## UGBEGE COMMUNITY — Fullstack PHP Community Website & Digital Information Platform

### 1. PROJECT ROLE

Act as a **Senior Fullstack PHP Software Architect, PHP 8.3 Developer, UI/UX Designer, Database Architect, GIS/Mapping Developer, Cybersecurity Engineer, SEO Specialist and Government/Community Digital Platform Consultant**.

Your task is to design and develop a professional, scalable, secure and mobile-first website and digital information platform for:

**UGBEGE COMMUNITY**

The platform must professionally present Ugbege Community to:

- The people of Ugbege
- Indigenes living outside the community
- Visitors and researchers
- Investors and businesses
- Delta State Government
- Federal Government of Nigeria
- Local Government authorities
- Development agencies
- NGOs
- Oil & gas companies
- Infrastructure developers
- Potential partners and donors
- The Nigerian and international public

The system must not merely function as a normal community website. It should become a **digital community profile, information, development advocacy and public engagement platform**.

---

# 2. CORE DEVELOPMENT REQUIREMENTS

Build the system using:

### Backend
- PHP 8.3+
- MySQL/MariaDB
- PDO or a properly structured database abstraction layer
- MVC architecture
- REST-ready architecture
- Object-oriented PHP
- Secure session/authentication system
- CSRF protection
- Input validation and sanitisation
- Role-based access control
- Secure file upload system
- Activity/audit logging

### Frontend
- HTML5
- Tailwind CSS
- Modern JavaScript
- AJAX/fetch where appropriate
- Responsive/mobile-first interface
- Accessible UI
- Progressive enhancement
- SEO-friendly HTML structure

### Infrastructure
- cPanel-compatible
- Apache-compatible
- PHP 8.3
- MySQL
- SSL/HTTPS
- SMTP support
- Cron-job compatibility
- Shared-hosting friendly

Do not introduce unnecessary technologies that make deployment difficult on standard Nigerian shared hosting.

If a framework is used, prefer **Laravel with PHP 8.3**. Otherwise implement a clean custom MVC architecture.

---

# 3. DEVELOPMENT PHILOSOPHY

Develop the project in controlled phases.

Do NOT attempt to build all modules simultaneously.

Each phase must:

1. Have clearly defined objectives.
2. Have database requirements identified.
3. Have frontend requirements identified.
4. Have backend requirements identified.
5. Have administrator requirements identified.
6. Have security requirements identified.
7. Have testing requirements identified.
8. Be independently testable.
9. Avoid breaking previously completed functionality.
10. End with a working version before proceeding.

Maintain backward compatibility between phases.

---

# 4. IMPORTANT RESEARCH PRINCIPLE

Use the previously researched Ugbege Community information as the project's authoritative initial content source.

However:

- Do not fabricate facts.
- Do not invent population statistics.
- Do not invent coordinates.
- Do not invent historical events.
- Do not claim government recognition without evidence.
- Do not fabricate infrastructure projects.
- Do not fabricate oil/gas activities.
- Do not invent traditional rulers or community leaders.
- Clearly mark information requiring verification.
- Where information is unavailable, create an administrator-editable placeholder.
- Provide a "Source/Reference" field for important factual information.

The CMS must allow future community administrators to update verified information without changing source code.

---

# 5. PROJECT OBJECTIVES

The completed platform should provide:

### Community Identity
- About Ugbege
- History and origin
- Culture
- Traditional institutions
- Community leadership
- People
- Land and geography
- Local identity

### Community Information
- Location
- Administrative jurisdiction
- Maps
- Surrounding communities
- Population/demographics
- Schools
- Healthcare
- Electricity
- Water
- Roads
- Telecommunications
- Economic activities
- Agriculture
- Natural resources
- Oil & gas information where verified

### Development Advocacy
- Infrastructure needs
- Community development priorities
- Project proposals
- Development gaps
- Government engagement
- Corporate/community engagement
- Development opportunities

### Public Engagement
- News
- Announcements
- Events
- Gallery
- Documents
- Contact
- Feedback
- Community notices

### Digital Administration
- Admin dashboard
- CMS
- User management
- Content management
- Media management
- Statistics
- Reports
- Audit logs
- SEO management
- Site configuration

---

# 6. PHASE 0 — PROJECT DISCOVERY & ARCHITECTURE

Before writing application code, produce a complete technical blueprint.

### Deliverables

Create:

- Project architecture
- Module list
- Feature matrix
- Database ERD
- Database table specification
- User-role matrix
- URL structure
- API structure
- Security architecture
- File/folder architecture
- Admin architecture
- Public website architecture
- Deployment architecture
- Backup strategy
- Development roadmap

### Define user roles

At minimum:

- Super Administrator
- Community Administrator
- Content Editor
- Media Manager
- Development/Projects Officer
- Research/Data Officer
- Viewer/Read-only Administrator

Implement granular permissions rather than relying only on hard-coded roles.

---

# 7. PHASE 1 — PROJECT FOUNDATION

Build the technical foundation.

### Backend

Implement:

- MVC structure
- Routing
- Controllers
- Models
- Services
- Middleware
- Database connection
- Configuration management
- Environment configuration
- Error handling
- Logging
- Session management
- Authentication foundation

### Frontend

Create:

- Main layout
- Header
- Navigation
- Mobile navigation
- Footer
- Breadcrumbs
- Alert system
- Modal system
- Form components
- Cards
- Tables
- Pagination
- Loading states
- Empty states

### Security

Implement:

- Password hashing
- CSRF protection
- XSS protection
- SQL injection prevention
- Secure sessions
- Login throttling
- Authentication middleware
- Authorization middleware

At the end of Phase 1, the application must successfully run on local PHP/MySQL.

---

# 8. PHASE 2 — DATABASE & CMS FOUNDATION

Create the core database structure.

Suggested tables include:

- users
- roles
- permissions
- role_permissions
- user_roles
- site_settings
- pages
- page_categories
- menus
- menu_items
- posts
- post_categories
- tags
- post_tags
- media
- documents
- events
- galleries
- gallery_images
- community_profiles
- infrastructure
- facilities
- schools
- health_facilities
- roads
- utilities
- economic_activities
- development_projects
- development_needs
- leaders
- historical_records
- community_locations
- contacts
- enquiries
- subscribers
- audit_logs

The database should be normalized and designed for future expansion.

---

# 9. PHASE 3 — PUBLIC WEBSITE UI/UX

Develop the public-facing website.

### Homepage

Create a strong government/institutional-quality homepage containing:

- Hero section
- Ugbege identity statement
- Location overview
- Community introduction
- Key statistics
- Community map
- Infrastructure snapshot
- Development priorities
- Latest news
- Events
- Gallery
- Important documents
- Development opportunities
- Government engagement section
- Contact section

The homepage should immediately communicate:

**Who Ugbege is, where Ugbege is, what Ugbege has, what Ugbege needs and what opportunities exist.**

---

# 10. PHASE 4 — COMMUNITY PROFILE MODULE

Create a comprehensive community profile system.

Sections:

### About Ugbege
- Overview
- Identity
- Location
- Administrative jurisdiction

### History
- Origin
- Historical timeline
- Migration/settlement information where verified
- Important historical events
- Cultural heritage

### Leadership
- Traditional leadership
- Community leadership
- Administrative/community structures
- Leadership history

### Geography
- Coordinates
- Boundaries
- Surrounding communities
- Map
- Geographic description

Every factual record should support:

- Title
- Description
- Date
- Source
- Verification status
- Image/document
- Last updated date

---

# 11. PHASE 5 — COMMUNITY FACILITIES & INFRASTRUCTURE

Build an infrastructure intelligence module.

Categories:

### Education
- Schools
- School type
- Location
- Ownership
- Available facilities
- Condition
- Student information where verified

### Healthcare
- Health centres
- Clinics
- Hospitals serving the community
- Distance/access information
- Available services

### Roads
- Major roads
- Access roads
- Road condition
- Connectivity
- Development requirements

### Electricity
- Electricity availability
- Distribution infrastructure
- Coverage
- Reliability information

### Water
- Boreholes
- Water schemes
- Rivers/streams
- Public water facilities
- Water challenges

### Telecommunications
- Network availability
- Internet access
- Digital connectivity

Each facility must be stored as structured data rather than hard-coded content.

---

# 12. PHASE 6 — GIS & INTERACTIVE COMMUNITY MAP

Develop an interactive map.

Possible mapping technology:

- OpenStreetMap
- Leaflet.js

Do not make the system dependent on an expensive mapping service unless necessary.

Map features:

- Ugbege location
- Community boundary where verified
- Schools
- Health facilities
- Roads
- Water facilities
- Electricity infrastructure
- Development projects
- Important landmarks

Use different map markers/categories.

Administrators should be able to:

- Add location
- Edit coordinates
- Select category
- Add description
- Upload images
- Mark verification status

Never publish unverified coordinates as official boundaries.

---

# 13. PHASE 7 — ECONOMY & INVESTMENT OPPORTUNITY

Create an economic profile.

Sections:

- Agriculture
- Fishing where applicable
- Local commerce
- SMEs
- Natural resources
- Oil & gas
- Other economic activities
- Youth employment
- Women economic activities
- Investment opportunities
- Skills development opportunities

Create an **Investment Opportunities** section showing:

- Opportunity title
- Sector
- Description
- Location
- Estimated opportunity size where verified
- Required infrastructure
- Potential beneficiaries
- Contact information
- Supporting documents

Clearly distinguish between verified opportunities and proposals.

---

# 14. PHASE 8 — DEVELOPMENT NEEDS & ADVOCACY PORTAL

This should become one of the most important modules.

Create a structured **Ugbege Development Needs Register**.

Categories:

- Roads
- Water
- Electricity
- Healthcare
- Education
- Security
- Telecommunications
- Agriculture
- Employment
- Youth development
- Women empowerment
- Environmental development
- Housing
- Transportation
- Other community priorities

Each development need should have:

- Title
- Category
- Detailed description
- Location
- Problem statement
- Current condition
- Proposed solution
- Estimated beneficiaries
- Estimated cost if known
- Priority level
- Supporting photographs
- Supporting documents
- Government agency responsible
- Potential partners
- Status
- Date submitted
- Verification status

Statuses:

- Identified
- Under Assessment
- Proposal Prepared
- Submitted
- Under Review
- Approved
- Funded
- Ongoing
- Completed
- Suspended

---

# 15. PHASE 9 — DEVELOPMENT PROJECT TRACKING

Create a public project-tracking system.

For every project:

- Project name
- Project category
- Location
- Sponsor
- Implementing organisation
- Funding source
- Start date
- Expected completion
- Actual completion
- Budget
- Current status
- Project description
- Images
- Documents
- Progress percentage

Provide a visual progress indicator.

Create:

**Development Projects Dashboard**

showing:

- Total projects
- Completed
- Ongoing
- Proposed
- Suspended
- Total estimated investment

Only display financial figures that are verified or explicitly marked as estimates.

---

# 16. PHASE 10 — NEWS, EVENTS & ANNOUNCEMENTS

Build a professional CMS.

Features:

- News articles
- Categories
- Tags
- Featured image
- Author
- Publication date
- Scheduled publishing
- Draft
- Review
- Published
- Archived

Events:

- Event title
- Date
- Time
- Location
- Description
- Organizer
- Registration information
- Images
- Documents

Include:

- Search
- Pagination
- Related posts
- Social sharing
- SEO metadata

---

# 17. PHASE 11 — MEDIA & DIGITAL ARCHIVE

Create a media library.

Support:

- Images
- PDFs
- Videos/embedded videos
- Community documents
- Historical photographs
- Government documents
- Development reports

Features:

- Categories
- Tags
- Search
- File metadata
- Upload permissions
- File size restrictions
- MIME validation
- Image optimization
- Secure storage

Create public galleries for:

- Community
- Culture
- Events
- Infrastructure
- Development projects
- Historical archive

---

# 18. PHASE 12 — DOCUMENT & PUBLICATION CENTRE

Create a document repository.

Categories:

- Community development plans
- Reports
- Historical documents
- Proposals
- Government correspondence
- Project documents
- Policies
- Meeting resolutions
- Public notices

Each document should support:

- Title
- Description
- Category
- Document date
- Version
- Author/organization
- Verification status
- PDF
- Download count

---

# 19. PHASE 13 — COMMUNITY ENGAGEMENT

Create:

### Contact Us

Fields:

- Name
- Email
- Phone
- Subject
- Message
- Category

### Community Feedback

Categories:

- Infrastructure
- Education
- Healthcare
- Security
- Environment
- Development
- General

### Newsletter

Allow visitors to subscribe to community updates.

Implement:

- Double opt-in where practical
- Unsubscribe
- Subscriber management
- Email notification system

Do not expose subscriber information publicly.

---

# 20. PHASE 14 — ADMIN DASHBOARD

Build a professional administrator dashboard.

Dashboard widgets:

- Total pages
- News articles
- Events
- Media files
- Documents
- Community facilities
- Development needs
- Development projects
- Registered administrators
- Enquiries
- Recent activity

Charts:

- Development projects by status
- Infrastructure by category
- Development needs by priority
- News publishing activity
- Visitor statistics if analytics is implemented

---

# 21. PHASE 15 — CONTENT MANAGEMENT SYSTEM

Administrators must be able to manage without developer intervention:

- Homepage
- About pages
- History
- Leadership
- Community statistics
- Infrastructure
- Facilities
- Development needs
- Projects
- News
- Events
- Gallery
- Documents
- Contact information
- Social media
- SEO metadata
- Navigation menus
- Footer
- Site logo
- Favicon
- Emergency announcements

Use reusable content components.

---

# 22. PHASE 16 — SEO & PUBLIC VISIBILITY

Implement strong SEO.

Features:

- SEO title
- Meta description
- Canonical URLs
- Open Graph
- Twitter/X cards
- XML sitemap
- Robots.txt
- Schema.org structured data
- Organization schema
- Place schema
- Article schema
- Event schema
- Breadcrumb schema

Create SEO-friendly URLs such as:

/about

/history

/leadership

/location

/infrastructure

/education

/healthcare

/economy

/development

/projects

/news

/events

/gallery

/documents

/contact

---

# 23. PHASE 17 — GOVERNMENT & DEVELOPMENT PARTNER PRESENTATION

Create a dedicated section:

## "UGBEGE COMMUNITY DEVELOPMENT PROFILE"

This should function almost like a digital briefing document.

Include:

- Executive summary
- Community profile
- Geographic profile
- Demographic profile
- Infrastructure status
- Economic profile
- Development challenges
- Priority needs
- Development opportunities
- Proposed interventions
- Community development priorities
- Contact information

Provide a professional **print-friendly version**.

Where appropriate, generate downloadable PDF reports from verified CMS data.

---

# 24. PHASE 18 — COMMUNITY STATISTICS DASHBOARD

Build a public statistics dashboard.

Possible indicators:

- Population
- Number of schools
- Health facilities
- Roads
- Water facilities
- Electricity coverage
- Development projects
- Development needs
- Economic sectors

Every statistic must support:

- Value
- Unit
- Year
- Source
- Verification status

Do not display unsupported statistics as factual.

---

# 25. PHASE 19 — SECURITY HARDENING

Perform a full security audit.

Implement:

- CSRF protection
- XSS prevention
- SQL injection protection
- Password hashing
- Secure cookies
- Session regeneration
- Authentication throttling
- Account lockout
- File-upload security
- MIME validation
- File extension validation
- Directory protection
- Access control
- Admin authorization
- Audit logging
- Security headers
- HTTPS enforcement
- Secure error handling

Never expose:

- Database credentials
- Environment variables
- Password hashes
- Internal file paths
- Server stack traces

---

# 26. PHASE 20 — ADMIN AUDIT & ACCOUNT SECURITY

Implement:

### Audit Logs

Track:

- Login
- Logout
- Failed login
- Content creation
- Content modification
- Content deletion
- File upload
- File deletion
- User creation
- Role modification
- Settings changes

Store:

- User
- Action
- Module
- Record
- IP
- Timestamp
- User agent where appropriate

Add optional:

- 2FA
- Login alerts
- Password expiration
- Session management

---

# 27. PHASE 21 — PERFORMANCE OPTIMIZATION

Optimize for Nigerian mobile users and slower connections.

Implement:

- Image compression
- Lazy loading
- Browser caching
- Database indexing
- Pagination
- Minification
- Efficient queries
- Server-side caching where appropriate
- Optimized assets
- Responsive images

The website should remain usable on:

- Android smartphones
- Entry-level smartphones
- Tablets
- Desktop
- Slow mobile networks

---

# 28. PHASE 22 — ACCESSIBILITY

Implement:

- Semantic HTML
- Keyboard navigation
- Accessible forms
- Proper labels
- Alt text
- Sufficient contrast
- Focus states
- ARIA only where necessary
- Readable typography
- Mobile accessibility

---

# 29. PHASE 23 — ANALYTICS & REPORTING

Create an analytics-ready architecture.

Track where appropriate:

- Page views
- Popular pages
- News views
- Document downloads
- Gallery views
- Contact submissions
- Development project views
- Search queries

Do not collect unnecessary personal data.

Include privacy-conscious analytics options.

---

# 30. PHASE 24 — BACKUP & DISASTER RECOVERY

Create a backup strategy.

Backup:

- Database
- Uploaded media
- Documents
- Configuration
- Application files

Provide administrator controls for:

- Database backup
- Backup history
- Backup download
- Restore procedure documentation

Never allow unauthorized users to access backups.

---

# 31. PHASE 25 — TESTING

Conduct:

### Functional Testing
Test every module.

### Security Testing
Test:

- SQL injection
- XSS
- CSRF
- Authentication bypass
- Authorization bypass
- File upload vulnerabilities
- Session attacks

### UI Testing

Test:

- Android
- iOS
- Desktop
- Tablet

### Browser Testing

Test:

- Chrome
- Firefox
- Edge
- Safari where available

### Performance Testing

Test:

- Homepage
- Search
- Maps
- News
- Gallery
- Admin dashboard

### Database Testing

Verify:

- Foreign keys
- Indexes
- Constraints
- Data integrity
- Cascading behavior

---

# 32. PHASE 26 — CONTENT QUALITY & FACT CHECKING

Before launch, perform a content audit.

Every important factual claim must be classified as:

- Verified
- Community-supplied
- Government-sourced
- Third-party sourced
- Proposed
- Estimated
- Requires verification

Do not present proposals as completed projects.

Do not present estimates as official statistics.

Do not present community claims as government-confirmed facts without appropriate attribution.

---

# 33. PHASE 27 — ADMIN TRAINING & DOCUMENTATION

Create documentation for administrators.

Documents should explain:

- Login
- Dashboard
- Creating pages
- Publishing news
- Adding events
- Uploading images
- Uploading documents
- Managing infrastructure
- Managing development projects
- Updating statistics
- Managing users
- Viewing enquiries
- Viewing audit logs
- Backup procedures
- Security procedures

---

# 34. PHASE 28 — PRODUCTION DEPLOYMENT

Prepare the application for cPanel deployment.

Provide:

- Production folder structure
- Database creation procedure
- Database import
- Environment configuration
- PHP version configuration
- SSL configuration
- SMTP configuration
- Cron jobs
- Storage permissions
- Rewrite rules
- Backup configuration

Verify that no development/debug mode remains enabled.

---

# 35. PHASE 29 — FINAL QUALITY ASSURANCE

Before declaring the project complete, verify:

- All public pages work.
- All admin pages work.
- Authentication works.
- Permissions work.
- Forms work.
- Emails work.
- Uploads work.
- Maps work.
- Search works.
- Database relationships work.
- Mobile responsiveness works.
- SEO works.
- Sitemap works.
- Security controls work.
- Backups work.
- Error handling works.

Create a final QA checklist and mark every requirement:

**PASS / FAIL / NEEDS REVIEW**

---

# 36. PHASE 30 — LAUNCH & POST-LAUNCH

Launch the production website.

Immediately after deployment:

- Test domain
- Test HTTPS
- Test DNS
- Test email
- Test database
- Test public pages
- Test admin
- Test forms
- Test uploads
- Test maps
- Test search
- Test mobile layout

Monitor:

- Errors
- Security events
- Broken links
- Performance
- Search indexing
- User feedback

Prepare a post-launch improvement roadmap.

---

# 37. PROPOSED PUBLIC WEBSITE STRUCTURE

Create the following navigation:

### HOME

### ABOUT UGBEGE
- Community Overview
- History & Origin
- Culture & Heritage
- Leadership
- Geography & Location

### COMMUNITY PROFILE
- Demographics
- Education
- Healthcare
- Roads
- Electricity
- Water
- Telecommunications
- Infrastructure

### ECONOMY
- Agriculture
- Local Economy
- Natural Resources
- Oil & Gas
- Investment Opportunities

### DEVELOPMENT
- Development Needs
- Priority Projects
- Ongoing Projects
- Completed Projects
- Development Profile

### NEWS & EVENTS
- News
- Announcements
- Events

### MEDIA
- Photo Gallery
- Videos
- Historical Archive

### DOCUMENTS
- Reports
- Development Plans
- Public Documents

### CONTACT
- Contact Us
- Feedback
- Community Enquiries

---

# 38. ADMINISTRATOR MENU

Create:

Dashboard

Content
- Pages
- News
- Categories
- Events
- Announcements

Community
- Community Profile
- History
- Leadership
- Demographics
- Geography

Infrastructure
- Schools
- Healthcare
- Roads
- Electricity
- Water
- Telecommunications

Economy
- Economic Activities
- Investment Opportunities

Development
- Development Needs
- Projects
- Project Updates

Media
- Media Library
- Galleries
- Documents

Engagement
- Enquiries
- Feedback
- Subscribers

Reports
- Community Profile Report
- Infrastructure Report
- Development Report
- Statistics

System
- Users
- Roles
- Permissions
- Settings
- SEO
- Menus
- Audit Logs
- Backups

---

# 39. DATABASE DESIGN PRINCIPLES

Do not create a database where important information is stored as large blocks of hard-coded HTML.

Use structured records.

For example, instead of storing:

"Ugbege has several schools..."

create structured school records with:

- name
- type
- ownership
- location
- coordinates
- facilities
- condition
- description
- source
- verification_status

This allows future reporting, mapping, filtering and analytics.

---

# 40. SEARCH SYSTEM

Create a global search engine.

Search across:

- Pages
- News
- Events
- Projects
- Development needs
- Facilities
- Documents
- Gallery
- Community information

Provide:

- Search suggestions
- Filters
- Categories
- Pagination
- Search highlighting
- No-result suggestions

---

# 41. API-READY ARCHITECTURE

Even if an API is not immediately required, structure the application so that future applications can consume Ugbege data.

Potential API endpoints:

/api/community

/api/facilities

/api/schools

/api/healthcare

/api/projects

/api/development-needs

/api/news

/api/events

/api/documents

/api/statistics

Implement:

- Authentication for protected endpoints
- Rate limiting
- Validation
- JSON responses
- Versioning

Use:

`/api/v1/`

as the initial API version.

---

# 42. FUTURE EXTENSIBILITY

Design the system so future phases can add:

- Community membership
- Indigenous registration
- Community ID
- Digital community directory
- Businesses directory
- Jobs portal
- Skills directory
- Youth development portal
- Women empowerment portal
- Community donations
- Fundraising
- Project crowdfunding
- Online petitions
- Volunteer registration
- Community emergency alerts
- SMS notifications
- WhatsApp integration
- Mobile application
- Government API integration

These should NOT be implemented prematurely unless specifically approved.

The architecture should simply make them possible later.

---

# 43. UI/UX DESIGN DIRECTION

The visual identity must communicate:

**Community + Heritage + Development + Trust + Government Readiness + Modern Technology**

Design principles:

- Professional
- Clean
- Institutional
- Modern
- Trustworthy
- Mobile-first
- Strong typography
- High-quality community photography
- Clear information hierarchy
- Strong calls to action

Avoid:

- Excessive animations
- Cluttered interfaces
- Fake statistics
- Stock imagery presented as Ugbege
- Unverified government logos
- Misleading claims
- Overly flashy designs

---

# 44. HOMEPAGE HERO MESSAGE

Create a strong hero area around the concept:

**"UGBEGE COMMUNITY — Our Heritage. Our People. Our Future."**

Supporting message should communicate:

- Identity
- Location
- Community development
- Opportunities
- Engagement

Primary CTAs:

**Explore Ugbege**

**Our Development Priorities**

Secondary CTA:

**Contact the Community**

---

# 45. GOVERNMENT-FACING CALL TO ACTION

Create a dedicated section communicating:

### "Partner With Ugbege"

Explain that the platform provides structured information about:

- Community needs
- Infrastructure
- Development priorities
- Economic opportunities
- Community assets
- Potential interventions

Provide buttons for:

- View Development Profile
- View Priority Needs
- View Projects
- Contact Community

Avoid implying government endorsement unless officially obtained.

---

# 46. DEVELOPMENT EXECUTION RULE

For every phase:

### STEP 1
Explain what will be built.

### STEP 2
Identify required database changes.

### STEP 3
Identify backend implementation.

### STEP 4
Identify frontend implementation.

### STEP 5
Implement functionality.

### STEP 6
Implement validation and security.

### STEP 7
Test functionality.

### STEP 8
Fix identified issues.

### STEP 9
Provide a phase completion report.

### STEP 10
Wait for approval before moving to the next major phase.

Do not silently skip phases.

---

# 47. CODE QUALITY REQUIREMENTS

All generated code must:

- Follow PSR standards where applicable.
- Use meaningful class/function names.
- Avoid duplicated code.
- Use reusable components.
- Separate business logic from presentation.
- Use prepared statements.
- Validate all input.
- Escape all output.
- Use secure password hashing.
- Handle exceptions properly.
- Log important errors.
- Avoid hard-coded credentials.
- Avoid hard-coded community data where CMS storage is appropriate.
- Include comments only where useful.

---

# 48. FINAL PROJECT DELIVERABLES

At project completion provide:

1. Complete source code.
2. Database schema.
3. SQL installation file.
4. Environment configuration example.
5. Admin documentation.
6. User documentation.
7. Deployment guide.
8. Security checklist.
9. QA report.
10. Database ERD.
11. System architecture diagram.
12. API documentation.
13. Backup and recovery guide.
14. SEO configuration.
15. Content verification framework.
16. Final project roadmap.
17. Future development roadmap.

---

# 49. MASTER SUCCESS CRITERIA

The project is successful when Ugbege Community has a professional digital platform capable of answering, from one website:

**Who are we?**

**Where are we?**

**What is our history?**

**Who are our people and leaders?**

**What facilities do we have?**

**What infrastructure do we have?**

**What are our economic activities?**

**What opportunities exist?**

**What challenges do we face?**

**What development projects are needed?**

**What projects are ongoing?**

**What has been completed?**

**How can government help?**

**How can development partners help?**

**How can investors engage?**

**How can members of the public contact us?**

---

# 50. FINAL INSTRUCTION TO THE DEVELOPMENT AI

Do not treat this as a simple brochure website.

Treat it as a **long-term digital community information, development advocacy, public engagement and institutional presentation platform**.

Build it professionally enough that a government official, development agency, NGO, investor, researcher or corporate organisation can visit the website and quickly understand Ugbege Community's:

**Identity → Location → History → People → Assets → Infrastructure → Economy → Challenges → Development Needs → Opportunities → Projects → Future Vision.**

Start with **PHASE 0 — PROJECT DISCOVERY & ARCHITECTURE**.

Before writing production code, provide:

1. Complete system architecture.
2. Module breakdown.
3. Database ERD specification.
4. User-role and permission matrix.
5. Public website sitemap.
6. Admin sitemap.
7. API architecture.
8. Security architecture.
9. File/folder structure.
10. Phase-by-phase implementation roadmap.

After Phase 0 is reviewed and approved, proceed to Phase 1.

**Do not jump directly to the final application. Build, test, document and validate the platform phase by phase.**