All Projects → DigitalKwarts → classy

DigitalKwarts / classy

Licence: GPL-3.0 License
Light, well-structured WordPress theme framework based on “Laravel Blade” template engine

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to classy

selene
A opinionated Wordpress base theme based on Sage.
Stars: ✭ 31 (-58.11%)
Mutual labels:  wordpress-theme, blade
Sage
WordPress starter theme with a modern development workflow
Stars: ✭ 11,531 (+15482.43%)
Mutual labels:  wordpress-theme, blade
eightshift-docs
A documentation website for Eightshift open source projects
Stars: ✭ 44 (-40.54%)
Mutual labels:  wordpress-theme
blade-zondicons
A package to easily make use of Zondicons in your Laravel Blade views.
Stars: ✭ 52 (-29.73%)
Mutual labels:  blade
Morphos-Blade
Morphos adapter for Blade
Stars: ✭ 32 (-56.76%)
Mutual labels:  blade
vanilla
Simple WordPress theme for blogging
Stars: ✭ 20 (-72.97%)
Mutual labels:  wordpress-theme
v1.scott.ee
✅ My website built with nuxt.js and statically generated from WordPress.
Stars: ✭ 55 (-25.68%)
Mutual labels:  wordpress-theme
think-blade
Blade template engine with thinkphp 5. (component & slot support)
Stars: ✭ 34 (-54.05%)
Mutual labels:  blade
laravel-blade-phpstorm-live-template
PhpStorm Live Templates for Laravel Templates (Blade)
Stars: ✭ 32 (-56.76%)
Mutual labels:  blade
Bulmascores
WordPress starter theme based on Underscores and Bulma
Stars: ✭ 14 (-81.08%)
Mutual labels:  wordpress-theme
kirby-blade
Enable Laravel Blade Template Engine for Kirby 3
Stars: ✭ 20 (-72.97%)
Mutual labels:  blade
edge
[READ ONLY] A Blade compatible template engine with much extendable interface.
Stars: ✭ 26 (-64.86%)
Mutual labels:  blade
blade-simple-icons
A package to easily make use of Simple Icons in your Laravel Blade views.
Stars: ✭ 12 (-83.78%)
Mutual labels:  blade
sage-next
familiar-zebra.surge.sh
Stars: ✭ 18 (-75.68%)
Mutual labels:  wordpress-theme
wp-svbtle-cs
A modified version of wp-svbtle.
Stars: ✭ 14 (-81.08%)
Mutual labels:  wordpress-theme
wordpress-amp-theme
A free WordPress theme for blogging built entirely on Google AMP
Stars: ✭ 22 (-70.27%)
Mutual labels:  wordpress-theme
theme-lib-mix
A Laravel Mix function for WordPress themes.
Stars: ✭ 33 (-55.41%)
Mutual labels:  wordpress-theme
webpack-gulp-wordpress-starter-theme
A WordPress theme with Webpack & Gulp
Stars: ✭ 110 (+48.65%)
Mutual labels:  wordpress-theme
laravel-simple-select
Laravel Simple Select inputs component for Blade and Livewire.
Stars: ✭ 59 (-20.27%)
Mutual labels:  blade
tailpress
A Tailwind CSS enabled Underscores theme
Stars: ✭ 60 (-18.92%)
Mutual labels:  wordpress-theme

alt tag

Scrutinizer Code Quality Build Status

Classy is a framework for building WordPress themes, based on Blade template engine. It's fast with beautiful architecture that allows you to write less code and focus more on project itself. It doesn't provide frontend boilerplate, since every project needs its own, instead it handles all architecture, providing an elegant way to separate logic from view.

Why Blade?

Blade is the simple, yet powerful templating engine provided with Laravel. Unlike other popular PHP templating engines, Blade does not restrict you from using plain PHP code in your views. All Blade views are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application.

Code example:
@extends('layout.default')

@section('content')
	@if ($post)
		<article>
			<h1>{{ $post->title() }}</h1>
			
			<section class="body">
				{{ $post->content() }}
			</section>
		</article>
	@endif
@stop

What’s about structure?

The biggest problem with WordPress theme development is that you always need to repeat same code. New approach, that assumes that template data will be collected and prepared separately from actual render allows you to have the project structured more accurate.

alt tag

How it works?

ClassyView and ClassyScope repeat the WordPress template hierarchy, however they do it independently. This allows to use the same scope with different templates and different scopes with the same template.

Example of project structure

alt tag

Getting started

  1. Navigate to your WordPress themes directory cd ~/Sites/mysite/wp-content/themes
  2. Clone repository git clone [email protected]:anrw/classy.git
  3. Navigate to it cd classy
  4. Install composer dependencies composer install

Config file

Check our GitHub Wiki

Page Templates

To register a template you need simply to put {{-- Template Name: Example --}} at the top of your blade file. We recommend you to structure your templates in one of this ways:

  1. views/page/templatename.blade.php
  2. views/template/templatename.blade.php
  3. views/template-name/templatename.blade.php

Useful links

  1. Blade documentation
  2. WordPress Code Style
  3. PHP Mess Detector

Requirements:

  • WordPress: 4.5+
  • PHP: 5.6+

How to check php code style

Check WP Code Style composer cs

How to run static code analyzer

Check PHPMD composer md

Contribute

You can report a bug, implement a feature or simply give an idea on how to make the project better. Every input from your side will be highly appreciated!

Big thanks to:

anrw LehaMotovilov konstantp
anrw LehaMotovilov konstantp

License

Classy is under GNU General Public Licence (GPL). You can use it in your personal and commercial work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].