Download the PHP package roberthucks/seo-magic without Composer

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

SEOMagic

How do you get SEO working when you get tricked in to making an SPA? Magic.

Installation

Usage

Configuration

Need to change some of the default settings?

fetchPage(string $uri, bool $fresh = false)

fetchPage() will return a PageResponse object containing the HTML content of the requested URI. Pages are cached for 24 hours by default, but this is customisable through the variable redis_cache_default_ttl. Setting $fresh to true will force a fresh copy of the page. Beware though, this isn't the fastest thing in the world.

cachePage(string $uri)

cachePage() will store the requested URI in the cache. This is useful for preemptively storing the page in the cache to speed up results of legitimate page requests.

Response Object

This is the object that will be returned from the fetchPage() function and is used internally to store the page response.

getHtml(): string

This will return a string that contains the HTML content of the page (without scripts or style tags). This is the bread and butter of the response.

getHeaders(): array

This will return an array of all of the headers.

getResponseCode(): int

This will return the response code of the request.

getRenderTime(): float

This returns a float that represents the time it took to render the page. This is mainly for performance metrics.

isFromCache(): bool

This returns a boolean that states whether or not the page is being fetched from the cache or not. This can be used to check whether your caching system is working correctly and how many hits/misses you are getting.


All versions of seo-magic with dependencies

PHP Build Version
Package Version
Requires predis/predis Version ^1.1
monolog/monolog Version ^1.24
guzzlehttp/guzzle Version ^6.3
nesk/puphpeteer Version ^1.6
paquettg/php-html-parser Version ^2.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 roberthucks/seo-magic contains the following files

Loading the files please wait ....