Download the PHP package harvest-media/craft-business without Composer

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

Harvest Media's CraftCMS Starter Theme

This is an opinionated, base starter theme to build new CraftCMS websites at Harvest Media. It's intended to save our developers time and improve consistency across our projects while following good practices for performance.

About CraftCMS

CraftCMS is our tool of choice. It's a flexible, scalable CMS written in PHP (7+), and built on the Yii 2 framework. It can connect to MySQL (5.5+) and PostgreSQL (9.5+) for content storage.

Assumptions

We've designed this starter theme around the most common use cases for Harvest Media including:

But of course this will work in any other LAMP environment that can run CraftCMS.

Features of this Starter Theme

Plugin Dependencies

Optional Plugins

Directory Structure

Folders

Files

Note: This starter theme assumes a directory structure with public as the web root (not "web" or "public_html"). If you change your web root folder name, you will need to update the Laravel Mix config file and Craft's config/general.php file.

Developing for the Front End Using Laravel Mix

Keeping pace with the modern web is challenging, but we make an effort to stay with the pack and follow the recommended practices of the day. Presently, we use Laravel Mix, self-described as an elegant wrapper around Webpack for the 80% use case. Where WebPack configuration is long and complex, Laravel Mix is relatively short and sweet.

See the webpack.mix.js file in the root of the repo.

Developing Locally

From the terminal, cd into the project directory and run npm install.

The follow commands are available. (You can find them in package.json).

Note: that Laravel Mix also supports Hot Module Replacement (HMR) via npm run hot but it seems to be meant for single page javascript apps or .vue files. We've haven't cracked the code on how to use it yet.

See the Laravel Mix config file for details.

CSS (SCSS and PostCSS)

The starter theme has a master CSS file at src/css/theme.scss. It uses:

We include only the pieces of Foundation that we want, rather than the whole framework.

For the most part, styling will happen in the html using tw- utilty classes provided by TailwindCSS.

When building for production SASS/SCSS is processed first, and PostCSS plugins are run afterward.

JS

The master JS file for the theme is located at src/js/theme.js.

For any Foundation plugins that require javascript we included them along with jQuery.

We recommended keeping JS to a minimum.

CSRF Protection with JS

Note: we achieve CSRF protection by the jQuery code.

which summarized in English will:

  1. Check for any CSRF form inputs on the page.
  2. Make an AJAX request to a CraftCMS template which contains only the CSRF token.
  3. Add the AJAX response (the current valid CSRF token) to the form inputs.

Templating

Using Macros

Partials, and macros in particular, will help you avoid repetition in your TWIG templates. Use them freely.

SVG Icons

Craft allows us to inline a single SVG in our HTML directly from a file in the public folder. This is much easier than building icon sprites and it allows us to easily include only the icons we actually use on the page.

Here's the code we use to achieve this:

Watching Out for Server Side Performance

Eager loading elements in craft will make a significant difference and is pretty easy to do. See the instructions in Craft's docs.

Local Development and Testing

In addition to testing via the IP address on your network, you can test cross device and remotely (outside your network) by using ngrok.

We also recommend changing the environment from dev to staging when performing final tests locally.

There's More Work to Do on This Starter Theme

Low Hanging Fruit

Improve Content Blocks / Builder


All versions of craft-business with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version 3.6.4.1
vlucas/phpdotenv Version ^3.4.0
nystudio107/craft-seomatic Version 3.3.31
craftcms/redactor Version 2.8.5
fortrabbit/craft-object-storage Version 2.0.0
solspace/craft-express-forms Version 1.1.0
fruitstudios/linkit Version 1.1.12.1
craftcms/feed-me Version 4.3.4
mmikkel/cache-flag Version 1.2.4
topshelfcraft/wordsmith Version 3.3.0.1
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 harvest-media/craft-business contains the following files

Loading the files please wait ....