Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abbychau/phpxql
inspired by realdb functions, a database like xpath HTML/XML retriver
https://github.com/abbychau/phpxql
Last synced: 11 days ago
JSON representation
inspired by realdb functions, a database like xpath HTML/XML retriver
- Host: GitHub
- URL: https://github.com/abbychau/phpxql
- Owner: abbychau
- License: apache-2.0
- Created: 2016-03-07T18:02:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-07T19:09:41.000Z (over 8 years ago)
- Last Synced: 2024-10-11T12:51:03.430Z (about 1 month ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpXQL
Inspired by RealDB functions, a database like xpath HTML/XML retriverUsage:
```PHP
$objXQL = new abbyLibs\phpXQL($url);
$path = '//*[@id="DivContentLeft"]/div[3]/div[2]/div[3]/div[1]/table/tr[?]/td[?]';
$arr = $objXQL->arr($path,[0,4],[0,4]);
print_r($arr);
$path = '//*[@id="DivContentLeft"]/div[3]/div[2]/div[3]/div[1]/table/tr[2]/td[?]';
$arr = $objXQL->row($path,[0,4]);
print_r($arr);
$path = '//*[@id="DivContentLeft"]/div[3]/div[2]/div[3]/div[1]/table/tr[2]/td[3]';
$string = $objXQL->row($path);
echo $string;
```Packgist: `https://packagist.org/packages/abby-libs/php-xql`
Composer: `composer require abby-libs/php-xql`
Apache2.0 license. Welcome to fork and use at any cause. I would be happy to hear from any words!