Download the PHP package deepslam/content-parser without Composer

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

Content Parser - Laravel 5 package for automatically detecting a content on custom web pages.

With this package, you can easily detect main content on different web pages and grab the content from it. This package provides following features:

The package uses automatic algorithms for grabbing data from web pages. You'll receive the title and the content from needle web page.

Requirements

The package requires follow solutions:

Installation

You can install the package via Composer. Just run:

Further, you have to add service provider in your config/app.php:

At next step you need to create alias in your config/app.php:

After it you need to publish configs:

Do not forget to run config:cache command:

That's all!

Settings

There are two different parsers:

Thus you have 3 configs:

Usage

You can easily use ContentParser:

There will be ContentParser object created.

This configuration will use "Graby" parser. If you need to use another one, you can specify it as a parameter:

As result, you will receive ContentParser object.

For parse data, you must use parse method which return true\false result (true if data has been received, false if not)

For getting a result of parsing there is one method:

There are a few methods in this object:

Extending

If you want to add a new parser you must create a new class and inherit it from \Deepslam\ContentParser\ContentParser class. You must realise the only one method - parse which must return bool as result and changes internal result object.

After it, you must specific your new class in the /config/deepslam/parser.php parsers array.

To use you parser specify it when you call ContentParser as shows below:

Full example

Support

If you find bug or have question\suggestion you can send e-mail to me: [[email protected]][email protected]


All versions of content-parser with dependencies

PHP Build Version
Package Version
Requires ixudra/curl Version 6.*
j0k3r/graby Version 1.*
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 deepslam/content-parser contains the following files

Loading the files please wait ....