Download the PHP package davidyell/seo without Composer

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

CakePHP-Seo

Build Status Coverage Status

What is it?

I always need to add meta tags to my pages for SEO purposes and it was getting tedious writing tools to complete this every time. So I created a component which hooks the event system to catch the beforeLayout event to inject SEO data into the view variables.

I found that by containing all the functionality for SEO inside a component it makes it easier to manage.

Requirements

Installation

https://packagist.org/packages/davidyell/seo

Setup

Firstly you will need to load the plugin in your /config/bootstrap.php.

Then you will need to attach it to the controller you want it to run on. I tend to attach it to my AppController.

There are a number of configuration settings you will need to change to match your setup. You can find these in the $settings class variable in the component. Primarily you will want to change the $settings['defaults'] to set the default title, description and keywords for your website.

How it works

The idea is that your model will have some fields editable in the CMS for SEO. Once this data is set to the view, the component will catch the data and inject it into your layout for you automatically.

As such your layout will need some things to exist in order for the component to correctly add the data.

Database configuration

This is for you to do. How you store your SEO data is outside the scope of this plugin. However I would recommend creating fields either in your Contents table or associated to it, with seo_title VARCHAR(255), seo_description TEXT, and seo_keywords VARCHAR(255).

Tips and Tricks

Got two viewVars set in your controller and you want to change it up depending on which is set?

The viewVar access accepts a hash path, so you can use dot notation to access deeply nested data.

Don't forget that you can set the config directly on an instance of the component.

Error handler middleware

It is very helpful to be able to catch 404 errors and use them to manage your SEO redirecting. This allows for only urls which do not match your application to be redirecting, avoiding any overhead.

The plugin provides a basic middleware for this purpose which can be implemented into your /src/Application.php


All versions of seo with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
cakephp/cakephp Version ~3.6
davidyell/seo-redirector Version ^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 davidyell/seo contains the following files

Loading the files please wait ....