Download the PHP package scarletsfiction/scarletsquery without Composer

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

Written by Build Status Tweet

ScarletsQuery

ScarletsQuery is a high performance HTML or XML query selector/parser for PHP that almost like jQuery.

Installation instruction

Clone/download this repository and include ScarletsQuery.php

Install with composer

composer require scarletsfiction/scarletsquery

Available Methods

This library query selector is designed like jQuery's queryselector.
But there are different method to obtain the data.

MarkupLanguage

This class will handle every selector query and parse Markup Language.

MarkupLanguage::parseText($string);

Parse HTML/XML to structured array as MarkupLanguageElementCollection

MarkupLanguageElementCollection

This class have a collection of Element Tree, you can also obtain the value just like an array $collection[0] and it will return MarkupLanguageElement.

$dom->length;

Return length of Element Collection

$dom->view;

Return raw array of the Element Collection

$dom->selector($query);

Return the result as MarkupLanguageElementCollection

$dom->parent();

Return parent of all result as MarkupLanguageElementCollection

$dom->content($index = false);

Return content of all result as Array If $index specified, it will return the content as String

MarkupLanguageElement

This class have a collection of Element Tree, you can also obtain the value just like an array $collection[0] and it will return MarkupLanguageElement.

$dom->view;

Return raw array of the Element

$dom->selector($query);

Return the result as MarkupLanguageElement

$dom->parent();

Return the element's parent MarkupLanguageElement

$dom->hasClass($class);

Return true if found and vice-versa

$dom->next($jump = 1);

Return the next sibling element as MarkupLanguageElement

$dom->content();

Return the content as String

$dom->attr($property);

Return element property as String or null if not found

Example Usage

And below is the PHP script

Contribution

If you want to help in ScarletsQuery, please fork this project and edit on your repository, then make a pull request to here.

Keep the code simple and clear.

License

ScarletsQuery is under the MIT license.

Help improve this framework by support the author \(≧▽≦)/


All versions of scarletsquery with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
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 scarletsfiction/scarletsquery contains the following files

Loading the files please wait ....