2017 © Pedro PelĂĄez
 

library nokogiri

Cuts through XML like a breeze.

image

fg/nokogiri

Cuts through XML like a breeze.

  • Wednesday, January 10, 2018
  • by fg
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5,385 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Nokogiri

Cuts through XML like a breeze., (*1)

Examples

Given this XML:, (*2)

<p>
    <span>Lorem ipsum dolor <em>sit amet</em>.</span>
</p>

Cutting it at the twentieth character..., (*3)

$Nokogiri = new Nokogiri\Nokogiri();
$Nokogiri->cut($xml, 20);

Would return:, (*4)

<p>
    <span>Lorem ipsum dolor <em>sit</em></span>
</p>

Cutting it at the eleventh character..., (*5)

$Nokogiri->cut($xml, 11);

Would return:, (*6)

<p>
    <span>Lorem ipsum</span>
</p>

Note that the blank characters between tags are not taken into account., (*7)

Contributing

Installation

Clone the project and run composer install., (*8)

Running tests

Run tests with composer run-script test., (*9)

Notes

The implementation is probably shitty, as I don't know anything about writing a decent parser..., (*10)

Also, the implementation of the parser itself is kind of tied to the class using it. It is obviously bad but it works :grin:, (*11)

The Versions

10/01 2018

dev-master

9999999-dev http://github.com/felixgirault/essence

Cuts through XML like a breeze.

  Sources   Download

MIT

The Development Requires

xml truncate cut

10/01 2018

0.3.1

0.3.1.0 http://github.com/felixgirault/essence

Cuts through XML like a breeze.

  Sources   Download

MIT

The Development Requires

xml truncate cut

30/08 2017

0.3.0

0.3.0.0 http://github.com/felixgirault/essence

Cuts through XML like a breeze.

  Sources   Download

MIT

The Development Requires

xml truncate cut

09/02 2015

0.2.0

0.2.0.0 http://github.com/felixgirault/essence

Cuts through XML like a breeze.

  Sources   Download

MIT

xml truncate cut

06/02 2015

0.1.0

0.1.0.0 http://github.com/felixgirault/essence

Cuts through XML like a breeze.

  Sources   Download

MIT

xml truncate cut