PHPackages                             undefinedfr/undefined-wp-framework - 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. [Framework](/categories/framework)
4. /
5. undefinedfr/undefined-wp-framework

ActiveWordpress-boilerplate[Framework](/categories/framework)

undefinedfr/undefined-wp-framework
==================================

Mini Framework for Wordpress

2.3(2mo ago)0438GPL-3.0-or-laterPHP

Since Jun 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/undefinedfr/undefined-wp-framework)[ Packagist](https://packagist.org/packages/undefinedfr/undefined-wp-framework)[ RSS](/packages/undefinedfr-undefined-wp-framework/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (56)Used By (0)

Undefined WP Framework
======================

[](#undefined-wp-framework)

Mini Framework MVC pour WordPress basé sur Timber/Twig.

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

[](#installation)

```
composer require undefinedfr/undefined-wp-framework
```

Dans votre `functions.php` :

```
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/vendor/undefinedfr/undefined-wp-framework/autoload.php';
```

Dépendances
-----------

[](#dépendances)

- [Timber](https://timber.github.io/docs/) ^2.0
- [Extended ACF](https://github.com/vinkla/extended-acf) ^14.2

Structure recommandée
---------------------

[](#structure-recommandée)

```
theme/
├── app/
│   ├── Block/           # Blocs ACF Gutenberg (legacy)
│   ├── blocks/          # Blocs Timber-style (nouveau)
│   ├── Command/         # Commandes WP-CLI
│   ├── PostType/        # Custom Post Types
│   ├── Taxonomy/        # Taxonomies personnalisées
│   ├── Controllers/     # Contrôleurs MVC
│   ├── Actions/         # Actions WordPress
│   ├── Filters/         # Filtres WordPress
│   └── Ajax/            # Fonctions Ajax
├── templates/           # Templates Twig
├── public/
│   └── assets/          # CSS, JS, images
└── functions.php

```

---

Custom Post Types
-----------------

[](#custom-post-types)

Créez vos CPT dans `app/PostType/` en étendant `PostType` :

```
