Download the PHP package vickychhetri/seo-helper without Composer

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

SEO Helper for Laravel

SEO Helper is a Laravel package designed to streamline SEO optimizations within Laravel applications. It provides utilities to manage SEO settings efficiently.

Installation

You can install this package via Composer. Run the following command in your terminal:

composer require vickychhetri/seo-helper

Usage

Publish Configuration

To publish the configuration file, use the vendor:publish Artisan command with the --tag=config option:

php artisan vendor --tag=config

This command will copy the configuration file (seo_helper.php) to your Laravel project's config directory, allowing you to customize SEO settings.

Publish Views

php artisan vendor --tag=views If your package includes views that users might want to customize, you can publish them using the --tag=views option:

This will copy the views to your Laravel project's resources/views/vendor/seo_helper directory, where you can modify them as needed.

Features

Usage

Initializing SEOHelper To start using SEO Helper, you need to initialize the SEOHelper class:

use Vickychhetri\SEOHelper\Helpers\SEOHelper;

SEOHelper $seoHelper = new SEOHelper();

Setting Meta Tags

You can set meta tags for title, description, and keywords using the setMeta() method:

$seoHelper->setMeta('Page Title', 'Page Description', 'keyword1, keyword2'); Setting Open Graph Tags

Set Open Graph tags such as title, description, URL, type, and image with the setOpenGraph() method:

$seoHelper->setOpenGraph('Open Graph Title', 'Open Graph Description', 'https://example.com', 'article', 'https://example.com/image.jpg');

Setting Twitter Card Tags

For Twitter Cards, set title, description, and image using the setTwitterCard() method:

$seoHelper->setTwitterCard('Twitter Card Title', 'Twitter Card Description', 'https://example.com/image.jpg');

Generating HTML Meta Tags

Once you've set your SEO attributes, generate the HTML meta tags using the generate() method:

$seoHtml = $seoHelper->generate();

Outputting HTML in Views

In your Blade views, output the generated HTML using {!! !!} to render HTML content:

{!! $seoHtml !!}

config seo_helper

[ 'key-path' => 'path/to/projectvicky-0ef21a587443.json', 'property' => '2866XXXX', ];

Instantiate the SeoAnalytics object

$seoAnalytics = new SeoAnalytics();

Call the activeUserSessionCountyWise method: Once you have instantiated the object, you can call the method activeUserSessionCountyWise with the appropriate arguments ($start_date and $endDate):

$start_date = '2024-01-01'; $endDate = '2024-06-30';

$seoAnalytics->activeUserSessionCountyWise($start_date, $endDate);

Methods Available

Additional Methods

Individual Attribute Setters You can also set individual SEO attributes directly using these methods:

Open Graph and Twitter Card Specific Setters

Canonical URLs

Define a default canonical URL or leave it as null for dynamic setting

Schema.org Markup

An empty array initializes for dynamic addition of schema.org markup

<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "", "image": "", "author": { "@type": "", "name": "" }, "publisher": { "@type": "Organization", "name": "", "logo": { "@type": "ImageObject", "url": "" } }, "datePublished": "" } </script>

Customization

Customize default SEO settings by editing the seo_helper.php configuration file in your Laravel project.

Contributing

Contributions are welcome! Fork the repository, make your changes, and submit a pull request.

Issues

If you encounter any problems or have suggestions, please open an issue on the Issues page.

License

This package is open-source software licensed under the MIT license.


All versions of seo-helper with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/support Version ^8.0|^9.0|^10.0
google/apiclient Version ^2.16
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 vickychhetri/seo-helper contains the following files

Loading the files please wait ....