PHPackages                             s2/admin-yard - 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. [Admin Panels](/categories/admin)
4. /
5. s2/admin-yard

ActiveLibrary[Admin Panels](/categories/admin)

s2/admin-yard
=============

Simple admin panel without heavy dependencies

65.6k—4.8%PHPCI passing

Since Dec 7Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/parpalak/admin-yard)[ Packagist](https://packagist.org/packages/s2/admin-yard)[ RSS](/packages/s2-admin-yard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

AdminYard
=========

[](#adminyard)

AdminYard is a lightweight PHP library for building admin panels without heavy dependencies such as frameworks, templating engines, or ORMs. It provides a declarative configuration in object style for defining entities, fields, and their properties. With AdminYard, you can quickly set up CRUD (Create, Read, Update, Delete) interfaces for your database tables and customize them according to your needs.

AdminYard simplifies the process of creating typical admin interfaces, allowing you to focus on developing core functionality. It does not attempt to create its own abstraction with as many features as possible. Instead, it addresses common admin tasks while providing enough extension points to customize it for your specific project.

When developing AdminYard, I took inspiration from EasyAdmin. I wanted to use it for one of my own projects, but I didn't want to pull in major dependencies like Symfony, Doctrine, or Twig. So, I tried to make a similar product without those dependencies. It can be useful for embedding into existing legacy projects, where adding a new framework and ORM is not so easy. If you are starting a new project from scratch, I recommend that you consider using Symfony, Doctrine and EasyAdmin first.

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

[](#installation)

To install AdminYard, you can use Composer:

```
composer require s2/admin-yard
```

Usage
-----

[](#usage)

Here are configuration examples with explanations. You can also see a more complete example of working [demo application](https://github.com/parpalak/admin-yard/tree/master/demo).

### Integration

[](#integration)

Once installed, you can start using AdminYard by creating an instance of AdminConfig and configuring it with your entity settings. Then, create an instance of AdminPanel passing the AdminConfig instance. Use the handleRequest method to handle incoming requests and generate the admin panel HTML.

```
