Download the PHP package matfish/craft-blogify without Composer

On this page you can find all versions of the php package matfish/craft-blogify. 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 craft-blogify

Blogify

Blogify offers a single-click solution to the task of building a blog with CraftCMS.

Once installed the plugin creates the data structure and templates, and allows for seeding of fake posts, so you can start customizing your blog right away. Blogify comes with a bunch of Twig enhancements that make the code in your templates declarative and simple.

Click here for a full demo of the result with zero configuration.

Installation

  1. Include the package:

  2. Install the plugin:

  3. (Optional but recommended for development) Seed some posts:

The default is 10 posts. You can pass a --count option to seed as many as you like.

That's all! Now go to {yoursite.dev}/blog/index and see the blog in action.

Spec

Blogify adds the following data structures to Craft:

  1. A "Blog Listing" (or index) Single.
  2. A "Blog" Channel
  3. An "Author Page" Single (All author posts)
  4. A "Blog Categories" category group and a corresponding category template to display all posts related to a given category.
  5. A "Blog Tags" tag group
  6. A "Tag Page" single (All posts with a given tag)
  7. A "Blog Assets" assets volume.
  8. A "Blog Thumbnail" transform.

Each Post in the Blog channel has the following fields:

  1. Title
  2. Image
  3. Excerpt
  4. Content (a Redactor field)
  5. Categories
  6. Tags

Twig Enhancements

the initial theme demonstrates usage of all the enhancements below.

Global variables

Blogify exposes a global blogify variable with the following properties:

Global methods

In addition, entities contain contextual methods, as follows:

Entry (Post)

Category

Tag

User (Author)

Note: Unless the method is getting a single entity (e.g entry.image), Blogify will return a query object, which can be used to further augment the query, e.g author.posts.limit(3).all().

Using Matrix field for the post content

By default the provided Post Content field is a Redactor field. If you wish to use the powerful Matrix field instead, we've got your back:

Each partial will expose a block variable containing all the fields. E.g if your block handle is postHeading and it has a heading field, create a blogify/post/_matrix/postHeading.twig file:

Note that you can change the templates folder path via the plugin's config. Create a config/blogify.php file:

Record post views

Blogify allows you track the popularity of your posts, so you can sort by popularity and display number of views. This option is disabled by default. You can enable it with a single command:

This will add a read-only Post Views field to your posts (right after the title). Now, every time someone views the post Blogify will automatically increment the number of views, while excluding drafts and previews.

Excluding IPs

Since you probably don't want to record your own views you can exclude certain IPs from triggering the event by adding the following to config/blogify.php:

Now you can sort by popularity (in descending order of course) in your templates:

To exclude posts with no views from the query pass true to the method call:

Finally, to display the number of views in your template simply call:

Multiple sites

When installed Blogify will register all Category Groups and Sections to all existing sites, with the same URL (relative to site root URL) and same templates.

If you need to vary template content between sites you can use:

  1. Static translations
  2. If statements
  3. Polymorphism

In case you still need to duplicate an entire template, you can duplicate it to your site folder, while keeping the same folder structure ** (e.g templates/de/blogify/listing/_entry.twig) This will prompt Craft to load this template as an override, when accessing the site with a handle of de. See: https://craftcms.com/docs/4.x/sites.html#step-4-update-your-templates

** Note that you can also duplicate it to a path that doesn't retain the same folder structure, in which case you'll need to define a new template path for the relevant Section/Category Group in Craft's back-end.

Modification

Blogify is designed as a solid starting point for a blog. You can freely extend and modify the data structures and templates, while keeping the following in mind:

License

You can try Blogify in a development environment for as long as you like. Once your site goes live, you are required to purchase a license for the plugin. License is purchasable through the Craft Plugin Store.

For more information, see Craft's Commercial Plugin Licensing.

Requirements

This plugin requires Craft CMS 3.7.0 or later.

Issues and Discussions Guidelines

Please only open a new issue for bug reports. For feature requests and questions open a new Discussion instead. When discussing a feature request please precede [FR] to the title.


All versions of craft-blogify with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^5.0.4
craftcms/redactor Version ^4.0.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 matfish/craft-blogify contains the following files

Loading the files please wait ....