Download the PHP package codevelopers/markup without Composer

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

License Packagist Version Packagist PHP Version Support

WordPress starter theme integrated with Bootstrap 4 Framework and Webpack Encore.
SEO friendly :wink:

Description

Markup, like _s, is a base theme to develop themes in Wordpress. It is built using namespaces, which gives us greater flexibility when developing our theme. On the other hand, Markup is already integrated with Bootstrap 4, therefore you will save the trouble of integrate Bootstrap 4 to the theme. To manage and optimize front-end dependencies, Webpack Encore is used, a Webpack wrapper created by Symfony wich simplifies the use of Webpack.

Requirements

To start using Markup you must ensure that:

Installation

Install Composer on your computer and after installing run the command composer require codevelopers/markup in the root of your Wordpress project. Composer will automatically install Markup in the wp-content/themes folder.

Theme structure

The functions.php file

This file takes care of including the external libraries, helpers, and hooks. In the helpers and hooks folder you will find some php files. If you want to create a new hook, you can use one of the files located in the hooks folder or create a new one. The same goes for helpers. You should consider when you create a new helper or hook file, you must reference it in the $helpers or $hooks array respectively, defined both in the functions.php file.

Hooks

You can find some hooks defined into the php scripts located in the hooks folder. As mentioned above, your own hooks can be defined in an existing hook file, or you can create new one.

Helpers

Markup come with some helper functions wich help you resolve common code problems while you are developing a new theme. Helper files, wich contain helper functions, must have a unique namespace, to avoid coalitions of functions and constants with other files or libraries. Helper files are located in the helpers folder. As same as hooks, a new helper function can be written in one of the exisiting helper files. If you want, you can create a new file with a unique namespace for avoid coalitions. Also you can use helper functions within hook files and as a template tag. Feel free to create helper functions that you can use in any part of your code.

Custom Queries

Custom queries can be created inside the query.php helper file as functions. You can call these functions in any part of your code.

Custom template tags

Template tags can be created inside the template_tags.php helper file, and you can call these functions in any template file.

Template parts

A helper function called get_template_part, defined in the template_tags.php helper file, with the same parameters as the WordPress get_template_part core function, is used to include the templates parts located into the template-parts directory. Remember that get_template_part helper function automatically append the template-parts directory name to the first $slug parameter, so you only need to pass the name of the template part.

Install front-end dependencies

To install front-end dependencies, you must install Yarn, and then run the following command in the theme directory:

Compile assets with Webpack Encore

Once the front-end libraries are installed, you must run the yarn dev command in the theme directory to compile the assets. If you want, you can run yarn watch during the development process, since webpack can watch files and recompile whenever they change. Before deploy to production environment, you must run yarn production.

Help us to skip working in this project


All versions of markup with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
composer/installers Version ^1.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 codevelopers/markup contains the following files

Loading the files please wait ....