Download the PHP package marshmallow/seoable without Composer

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

SEO meta field nova

This custom nova field, can add SEO related fields to any Model through a morph relationship within one single trait.

How to install

To install the package run the install below:

And then run the migrations:

And then publish the configs:

PLEASE NOTE

If you are using route caching you need to make sure you have a queue:work running. If you change a route we will recache your routes automaticly but this is done via a queue.

Manually

You can change the SEO data with the methods below.

How to use the field

Find the model you want to have the SEO fields on, example could be App\Models\Page, then add the Seoable trait:

Then use the field in the nova resource App\Nova\Page:

Then go to the top of your layout blade as default it's resources/views/welcome.blade.php:

Last step! Tell the SEO Facade which model it can use to set the SEO data.

Publish the Nova Resources

Use sluggable

This package also includes marshmallow/sluggable by default. We do this because to make sure all seo driven website will use the same logic for building slugs. The package it self does not use marshmallow/sluggable so you can choose any other sluggable package if you wish to do so.

Use routes

Add the following to your routes/web.php.

Use pretty URL's

If you wish to use the pretty urls module, you need to activate this in your config. This is set to false by default. This module will register a middleware for you. Because this functionality is currently in beta it is disabled by default. If you find any issues, please let us know.

Setup default values for a model

You can overrule how the seo defaults per model are handled. You can use the methods below.

Setup Sitemap functionality

If you want the sitemap functionality then activate the sitemap by changing the seo.sitemap_status config to true. Then add the models which has the SeoSitemapTrait trait to the seo.sitemap_models array, like this:

Add Sitemap trait to models

When you want the eloquent model to be shown in the sitemap then you need to add the SeoSitemapTrait trait to it:

Know you should be able to go to the seo.sitemap_path which is /sitemap as default. Then you should get an xml in the correct sitemap structure for Google Search Console.

Structured Data

Robots

This package also allows you to use a customer Robots.txt. You should create a helper class where you will add your Robots.txt content. For instance, create a class in app/Helpers/RobotTxt.php. In this class you should implement a handle method. This package will call the method for you and output the result.

Implementation robots

Once you've created the helper class you should let the seoable config know where to find this helper.

To complete the implementation, you only need the remove the default public/robots.txt file and you are good to go!

How does it look in Laravel Nova

If the field is shown in the index view of the Resource, then you should see a column with a dot:

In detail view you will see a text saying You need some SEO data if no SEO is setup yet. But if you have any then, you will get the toggle button, which will show you an example how it will look like on Google and on Facebook:

In form view you should see all the SEO input fields:


All versions of seoable with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
marshmallow/commands Version ^1.0
marshmallow/mr-mallow Version ^1.0
marshmallow/nova-advanced-image Version ^2.0
marshmallow/nova-flexible Version ^5.0
marshmallow/nova-fields-help Version ^v2.0
marshmallow/translatable Version ^2.0
laravel/nova Version ^5.0
marshmallow/nova-multiselect-field Version ^5.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 marshmallow/seoable contains the following files

Loading the files please wait ....