Download the PHP package discophp/wordpress without Composer
On this page you can find all versions of the php package discophp/wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download discophp/wordpress
More information about discophp/wordpress
Files in discophp/wordpress
Package wordpress
Short Description Wordpress Addon for the Disco PHP Framework
License Apache License V2
Informations about the package wordpress
Wordpress Addon
Sick of Wordpress's bloated code but love their administration panel? Your in the right place.
How to use
First install wordpress via their instructions
Then remove the index.php file from the installation directory, you can move the installation directory to any where now to hide it from public view and mask the login without affecting the frontend.
Prep your application by registering the Wordpress Facades with the Disco container:
Make the WP Facade
Create a Router Filter for the wordpress directory
Thats it! Wordpress is set up!
Override any of the templates used
You can override the templates used by the Wordpress Addon by just creating a folder under your template folder called wordpress/ and naming the template you wish to override by the same name as the one used by the Addon
List of Templates
- author-list
- breadcrumb-container
- breadcrumb
- category-container
- category-list
- category
- feed
- pagination-container
- pagination-list
- post-list
- post
- tag-container
- tag-list
- tag
Work with strictly the Data
Using the method:
You can receive mysqli_result objects back
[option]
- index : Primary wordpress feed of articles listed by date.
- search : Search for regex matches of a search term in the database.
- list-posts : Return the most recent posts as a feed.
- post : A single post identified by the slug.
- tag : Articles sorted by date that used a particular tag.
- category : Articles sorted by date that used a particular category.
- author : Articles written by a particular author.
- recent-posts : List of recent posts.
- top-terms : Top X terms either 'category' or 'post_tag'.
- top-authors : top X authors.