Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
This package has been abandoned.
Generated on May 15, 2024 via composer

theseer/fdomdocument 1.6.7

The classes contained within this repository extend the standard DOM to use exceptions at all occasions of errors instead of PHP warnings or notices. They also add various custom methods and shortcuts for convenience and to simplify the usage of DOM.
Package summary
Share
1
issue
1
high severity
meta
1
1
license
1
BSD-3-Clause
Package created
1 Dec 2012
Version published
25 Jan 2022
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-3-Clause

Issues

1

1 high severity issue

high
via: theseer/fdomdocument@1.6.7
Collapse
Expand

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
theseer/fdomdocument@1.6.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of theseer/fdomdocument 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does theseer/fdomdocument do?

TheSeer/fDOMDocument is an extended version of the PHP's standard DOM. This package is designed to provide more robust error handling by throwing exceptions when errors occur rather than PHP warnings or notices. Plus, it introduces additional custom methods and shortcuts for user convenience, making DOM usage a lot simpler.

How do you use theseer/fdomdocument?

To use TheSeer/fDOMDocument, you need to first install it via composer by adding it to your project's requirements. This is how your composer.json file should look like:

{
    "require": {
        "theseer/fdomdocument": "^1.6"
    }
}

After successful installation, fDOMDocument can be included in your PHP script through the composer-generated autoload.php file. The following code demonstrates an example usage of fDOMDocument:

<?php

require '/path/to/autoload.php';

$dom = new TheSeer\fDOM\fDOMDocument();
try {
    $dom->loadXML('<?xml version="1.0" ?><root><child name="foo" /></root>');
} catch (fDOMException $e) {
    die($e);
}

$child = $dom->queryOne('//child');
print_r($child->getAttribute('name'));
print_r($child->getAttribute('missing','DefaultValue'));

?>

In this example, an instance of fDOMDocument is created and an XML content is loaded into this object. The 'loadXML' method might throw a 'fDOMException' if the XML is not valid. The convenience function 'queryOne' is then used to select the 'child' element. The 'getAttribute' method provides access to the attributes of the selected element.

Where are the theseer/fdomdocument docs?

The documentation for TheSeer/fDOMDocument package is currently not hosted on a specific documentation website. Instead, you can find information on how to use the package and details about its implementation on the GitHub Readme file. For additional examples, usage details or debugging information, feel free to explore the source code itself to get a better understanding of the package's capabilities.