PHPackages                             il4mb/blocknode - 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. il4mb/blocknode

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

il4mb/blocknode
===============

Html block node library

0.1.0(1y ago)026MITPHPPHP ^8.0

Since Jan 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/il4mb/BlockNode)[ Packagist](https://packagist.org/packages/il4mb/blocknode)[ RSS](/packages/il4mb-blocknode/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

BlockNode Library
=================

[](#blocknode-library)

BlockNode is a lightweight PHP library for creating, manipulating, and rendering HTML-like node structures programmatically. It supports dynamic DOM-style operations such as appending, prepending, and querying nodes using simple methods.

---

Features
--------

[](#features)

- Create nested node structures easily.
- Query and manipulate nodes using CSS-like selectors.
- Supports appending and prepending content dynamically.
- Automatically handles both string-based HTML and node objects.

---

Installation
------------

[](#installation)

Install the library via [Composer](https://getcomposer.org/):

```
composer require il4mb/blocknode
```

---

Quick Start
-----------

[](#quick-start)

Here’s a simple example to get you started:

```
