2017 © Pedro Peláez
 

library php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

image

chillerlan/php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

  • Tuesday, January 23, 2018
  • by codemasher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

chillerlan/php-prototype-dom

prototype.js like DOM traversal and manipulation for PHP 7.4+., (*1)

PHP Version Support ![version][packagist-badge] license ![Travis][travis-badge] ![Coverage][coverage-badge] ![Scrunitizer][scrutinizer-badge] ![Packagist downloads][downloads-badge]br/ [CI][gh-action] [phpDocs][gh-docs], (*2)

Documentation

An API documentation created with phpDocumentor can be found at https://chillerlan.github.io/php-prototype-dom/ (WIP)., (*3)

Requirements

Installation

requires composer, (*4)

composer.json (note: replace dev-main with a version boundary), (*5)

{
    "require": {
        "php": "^7.4 || ^8.0",
        "chillerlan/php-prototype-dom": "dev-main"
    }
}

Profit!, (*6)

Quickstart

use chillerlan\PrototypeDOM\Document;
use chillerlan\PrototypeDOM\Node\PrototypeHTMLElement;

$document = new Document(file_get_contents('https://www.php.net/supported-versions.php'));

$supportedVersions = $document->querySelectorAll('tr.stable > td:first-of-type > a')
    ->map(fn(PrototypeHTMLElement $a):string => $a->value());

var_dump($supportedVersions); // -> ['7.4', '8.0']

The Versions

23/01 2018

dev-master

9999999-dev https://github.com/chillerlan/php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

  Sources   Download

MIT

The Requires

 

The Development Requires

23/01 2018

1.0.4

1.0.4.0 https://github.com/chillerlan/php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

  Sources   Download

MIT

The Requires

 

The Development Requires

29/12 2017

1.0.3

1.0.3.0 https://github.com/codemasher/php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

  Sources   Download

MIT

The Requires

 

The Development Requires

10/05 2017

1.0.2

1.0.2.0 https://github.com/codemasher/php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

  Sources   Download

MIT

The Requires

 

The Development Requires

08/05 2017

1.0.1

1.0.1.0 https://github.com/codemasher/php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

  Sources   Download

MIT

The Requires

 

The Development Requires

08/05 2017

1.0.0

1.0.0.0 https://github.com/codemasher/php-prototype-dom

Prototype.js like DOM traversal and manipulation. PHP 7+

  Sources   Download

MIT

The Requires

 

The Development Requires