PHP Classes


Recommend this page to a friend!
  Classes of uche  >  PHP News Website and API  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP News Website and API
Manage news articles for a site and access via API
Author: By
Last change:
Date: 10 months ago
Size: 639 bytes


Class file image Download


This is a simple news website and API developed using Laravel. You can add and delete news from the frontend. There are APIs to fetch all news and a specific news. To get started,

  • Git clone and cd to project folder
  • Run [composer install]
  • Set up your .env file with the appropiate credentials especially database credentials.
  • Run [php artisan migrate] for your migrations
  • Run [php artisan db:seed] to seed the news categories table.
  • Run [php artisan serve] to start your application and use accordingly.

API endpoints

  • GET /api/articles [fetch all news]
  • GET /api/article/{id} [fetch a specific news item]
For more information send a message to info at phpclasses dot org.