Download the PHP package initbiz/seostorm-plugin without Composer

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

SEO Storm - ultimate SEO tool for OctoberCMS!

SEO Storm - ultimate SEO tool for OctoberCMS

Originally forked from the abandoned Arcane.SEO plugin we have made numerous improvements and added many new features.

Key Features

SEO Storm let's you:

SEO Storm supports RainLab.Pages, RainLab.Translate, and RainLab.Blog out of the box.

Common use-cases

Global prefix/suffix in the page's title

  1. Go to Settings -> SEO Storm -> General settings and set Enable title and description meta tags to on.
  2. Fill the Site name and Site name separator fields.
  3. Select if you want to have the Site name added to the beginning or to the end (prefix or suffix).

Global prefix/suffix in the page's title

Automatically set the title of the page based on a model (such as a blog post)

The following instructions will work for any other field that is accessible from the page. The only thing you have to decide is the variable title you would like to set it by. In this example we'll use the Question model which is featured on our page here.

Go to Editor -> Pages -> Select the page -> and click the SEO Storm button. Complete the field using Twig syntax as shown in the screenshot below:

Automatically set the meta attribute based on model values

The same approach will work for most of the other parameters. See the Dynamic meta tags section for more information.

Generating your sitemap.xml

Go to Settings -> SEO Storm -> General settings and set Enable sitemap.xml to On.

That's basically everything you need. Just make sure that all the pages you want to be included in the sitemap.xml have the Enable in sitemap.xml option checked

Enable in sitemap.xml checkbox

If you want to handle more advanced customizations, see the Advanced sitemap.xml section.

We recommend changing queue engine to something else than sync if you have bigger pages.

Dynamic meta tags

In many situations you'll want to have the meta attributes set dynamically based on the variables on the page. A typical example would be a blog post which uses the {{ post }} variable. Using Dynamic meta tags we can set the attributes based on such variables.

Tags that are currently using Twig syntax:

Fallback values

Keep in mind that you can basically fill those fields with anything that is accepted by Twig. This includes conditionals in the case of empty values. For example let's say you have a model that has two fields: name and meta_title. You want to set the title using the meta_title field but if it's not present, you want SEO Storm to use name instead. You can build the logic like this:

Advanced sitemap.xml

You may want to fill parameters in you URLs based on the models in the page (e.g. a blog post's slug). To achieve that, you can set the following parameters in your page's settings:

  1. Model class
  2. Model params
  3. Model scope

In the following example we have the model Question, but you may easily use Post or any other value that this page is displaying.

Advanced sitemap.xml configuration

Take a closer look at those two parameters:

  1. the class (e.g. Author\Plugin\Models\ModelClass) to the model_class field, and
  2. model parameters that match the parameters in the URL (e.g. slug:slug).

The first one will say SEO Storm, which model it should use for this page to generate URLs in the sitemap. The second one is pairing between the URL parameter and model attribute (which match which).

Model params

As described above, the first parameter of the definition is the URL parameter while the second one is the corresponding model attribute.

For example: post:slug means we have a post parameter in the URL and slug attribute in the model.

If you want to add more attributes, split them by pipe character (|). For example: date:date|slug:slug.

You may want to create a URL such as /blog/:category/:postslug. To achieve this we use the dot syntax to fetch the attribute from the related object, as this example demonstrates:

This method will work for all relation types but if it's a "one to many" relationship, remember that only the first one will be used.

Model scopes

Sometimes you may want to filter the records listed in the sitemap.xml. To do this define a scope in your model and provide its name in the third parameter. It will then be used by SEO Storm to filter the records. More about scopes here. Additionally, you can pass a parameter to scope after the : character, example isPublished:yesterday

For Posts generated by the RainLab.Blog you can use isPublished to fetch the published ones only. Otherwise, all of the posts will be listed in the sitemap.xml.

Open Graph & Twitter cards

You can set Open Graph and Twitter cards attributes using SEO Storm, as well. Keep in mind, that both are filled using OG fields. (SEO Storm doesn't support using different content for each).

If you want to learn more about OG and Twitter cards take a look at the guide for Open Graph from Facebook and the guide for Twitter cards from Twitter.

Open Graph and Twitter attributes

Currently supported tags are:

Note: Please read the guidelines from Facebook and Twitter linked above for recommended values on these tags. Take a look at the Dynamic meta tags section to see which of those support the Twig syntax.

Custom models with SEO parameters

SEO Storm lets you easily define the models to which you'd like to have SEO parameters dynamically attached.

You don't have to make any other customizations - SEO Storm takes care of extending the models and storing the attributes in the DB.

We call such models Stormed. To register a model as Stormed implement a registerStormedModels method in your plugin's registration file (Plugin.php).

Add the registerStormedModels() method in your Plugin.php file, for example:

Using this definition SEO Storm will take care of extending the model and form widgets in backend controllers. The above example will add SEO fields to the ExampleModel as shown in the following example (the example uses our Question model):

Example stormed model registration

If you wish to customize the fields displayed in the backend you can use the excludeFields attribute in the registration method. You may also use inverted syntax, so that all the fields are removed except the ones listed. See the example below:

The following parameters are supported in the registerStormedModels method:

Note: By default, SEO Storm takes care of CMS pages and Static pages so you don't have to define them yourself.

Troubleshooting

Problem: Cards looking bad when pasting a link on social media

Reason: Open Graph is not enabled or it's configured improperly. See the guide for Open Graph from Facebook and the guide for Twitter cards from Twitter to get better understanding on the parameters.


All versions of seostorm-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
composer/installers Version ~1.0
october/system Version ^3.1
initbiz/sitemap 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 initbiz/seostorm-plugin contains the following files

Loading the files please wait ....