PHPackages                             lum/simpledom-functional - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lum/simpledom-functional

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lum/simpledom-functional
========================

Legacy global functions for SimpleDOM

v3.1.0(4y ago)06MIT

Since Dec 16Compare

[ Source](https://github.com/supernovus/simpledom-functional)[ Packagist](https://packagist.org/packages/lum/simpledom-functional)[ Docs](https://github.com/supernovus/simpledom-functional)[ RSS](/packages/lum-simpledom-functional/feed)WikiDiscussions Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

SimpleDOM Global Functions
==========================

[](#simpledom-global-functions)

Summary
-------

[](#summary)

The `simpledom_*` global functions for [SimpleDOM](https://github.com/supernovus/simpledom)

Description
-----------

[](#description)

Versions of SimpleDOM prior to 3.0 exported these global functions automatically. As of version 3.0, the main library has moved to using static class methods instead. For legacy code still using the global functions, this package adds them back.

It's obviously not a standalone package, but an extension of SimpleDOM.

Functions
---------

[](#functions)

```
simpledom_load_file(string $filename): ?SimpleDOM; // see simplexml_load_file()
simpledom_load_string(string $string): ?SimpleDOM; // see simplexml_load_string()
simpledom_import_dom(object $dom): ?SimpleDOM;     // see simplexml_import_dom()
simpledom_import_simplexml(object $simplexml): ?SimpleDOM;
```

Tests
-----

[](#tests)

Run `make test` to run the tests using PHPUnit.

License
-------

[](#license)

[MIT License](http://www.opensource.org/licenses/mit-license.php)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~136 days

Total

2

Last Release

1522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ff04349507190155013e4a94a8b14860a7ac57afce4ba97961c7c79bd023dd7?d=identicon)[supernovus](/maintainers/supernovus)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lum-simpledom-functional/health.svg)

```
[![Health](https://phpackages.com/badges/lum-simpledom-functional/health.svg)](https://phpackages.com/packages/lum-simpledom-functional)
```

###  Alternatives

[dflydev/placeholder-resolver

Given a data source representing key =&gt; value pairs, resolve placeholders like ${foo.bar} to the value associated with the 'foo.bar' key in the data source.

14414.6M3](/packages/dflydev-placeholder-resolver)[symfony/polyfill-intl-messageformatter

Symfony polyfill for intl's MessageFormatter class and related functions

404.3M34](/packages/symfony-polyfill-intl-messageformatter)[gerenuk/filament-banhammer

This package adds model banning functionality to filament

122.9k](/packages/gerenuk-filament-banhammer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
