Download the PHP package ozankurt/modules-blog without Composer

On this page you can find all versions of the php package ozankurt/modules-blog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package modules-blog

KurtModules-Blog

I tried to extract a simple, reusable blog module to use on my projects. I used two external packages in total. For keeping the URL pretty on every possible page, I added Eloquent Sluggable and for displaying the content of a post I decided to use Laravel Markdown. This can of course be overwritten.

The module includes the following models and each model has a default observer:

PS: Observers are currently not customizable. :(

Category

Methods Description
posts() Posts of the category. (hasMany)
postsCount() Posts count of the category. (hasOne)
latestPost() Latest post of the category. (hasOne)
scopePopular($descending = true) Order the categories accoring to their popularities. (scope)

Tag

Methods Description
posts() Posts of the tag. (belongsToMany)
postsCount() Posts count of the tag. (hasOne)
latestPost() Latest post of the tag.

Post

Posts have a media type attribute so that the users can choose between a Text Post, Single Image Post, Multiple Image Post or Video Post. Videos support 3 different websites: YouTube, Vimeo, DailyMotion

Methods Description
category() Category of the post. (belongsTo)
user() User of the post. (belongsTo)
comments() Comments of the post. (hasMany)
commentsCount() Comments count of the post. (hasOne)
latestComment() Latest comment of the post.
tags() Tags of the post. (belongsToMany)
tagsCount() Tag count of the post. (hasOne)
scopePopular($descending = true) Order the categories accoring to their popularities. (scope)
scopeInCategory($categoryId = true) Filter the posts to a category. (scope)*
scopeWithTags($tagIds = [], $and = false) Filter the posts by their tags. (scope)*

PS: This should be able to receive multiple ids sometime.*

Comment

Methods Description
post() Post of the comment. (belongsTo)
user() User of the comment. (belongsTo)
isApproved() Check the approval state of the comment.
approve($state = true) Update the appvoval of the comment.
disapprove() Update the appvoval of the comment.

Contribution guidelines

Todo: Add contribution guidelines.

Who do I talk to?

Owner:


All versions of modules-blog with dependencies

PHP Build Version
Package Version
Requires ozankurt/modules-core Version ^0.4
cviebrock/eloquent-sluggable Version ^4.2|^5.0|^6.0|^7.0
graham-campbell/markdown Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ozankurt/modules-blog contains the following files

Loading the files please wait ....