PHPackages                             pollora/nectar - 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. pollora/nectar

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

pollora/nectar
==============

AI-powered development context for Pollora — guidelines, skills, and MCP tools for AI agents.

v1.0.0(3w ago)04GPL-2.0-or-laterPHPPHP ^8.3CI passing

Since Jul 2Pushed 3w agoCompare

[ Source](https://github.com/Pollora/nectar)[ Packagist](https://packagist.org/packages/pollora/nectar)[ RSS](/packages/pollora-nectar/feed)WikiDiscussions main Synced 1w ago

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

 [ ![Pollora](resources/images/pollora-logo.svg) ](https://github.com/Pollora/nectar)

 **Nectar** — AI-powered development context for Pollora

 [![Latest Stable Version](https://camo.githubusercontent.com/38a7a83c659d6207c5480d3928ecb2a058115b283fd4dc65fdd60e0ed5174be9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c6c6f72612f6e6563746172)](https://packagist.org/packages/pollora/nectar) [![Total Downloads](https://camo.githubusercontent.com/538809182dd57cb40af8f36739cfa394990d8226e73b9f5928e57832eb83dba9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6c6c6f72612f6e6563746172)](https://packagist.org/packages/pollora/nectar) [![License](https://camo.githubusercontent.com/a3409d4a24052c6849315416d5825b43d2916b74268bbd5fbb71d0b0eb413b08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706f6c6c6f72612f6e6563746172)](https://packagist.org/packages/pollora/nectar)

About Nectar
------------

[](#about-nectar)

Nectar feeds AI agents with the context they need to write high-quality Pollora code. Built on top of [Laravel Boost](https://laravel.com/docs/boost), it provides **AI guidelines**, **agent skills**, and a **dedicated MCP server** tailored to the Pollora framework and WordPress integration.

### What it provides

[](#what-it-provides)

FeatureDescription**AI Guidelines**Pollora architecture, PHP attributes, WordPress routing, Blade theming — injected into your agent's context via Boost**8 Agent Skills**On-demand knowledge for post types, taxonomies, theming, hooks, blocks, REST API, scheduling, and modules**10 MCP Tools**Live introspection of your WordPress &amp; Pollora environment directly from your AI agent**Upgrade Prompts**Step-by-step MCP prompts for upgrading between Pollora major versions (e.g., 12→13)Installation
------------

[](#installation)

```
composer require pollora/nectar --dev
```

Then run Boost to install guidelines and skills:

```
php artisan boost:install
```

Select `pollora/nectar` when prompted for third-party packages, or add it manually to `boost.json`:

```
{
    "packages": ["pollora/nectar"]
}
```

Then update:

```
php artisan boost:update
```

MCP Server
----------

[](#mcp-server)

Nectar registers a `pollora-nectar` MCP server that gives AI agents live access to your WordPress and Pollora environment.

### Starting the server

[](#starting-the-server)

```
php artisan nectar:mcp
```

Or register it in your `.mcp.json`:

```
{
    "mcpServers": {
        "pollora-nectar": {
            "command": "php",
            "args": ["artisan", "nectar:mcp"]
        }
    }
}
```

### Available MCP Tools

[](#available-mcp-tools)

ToolDescription`pollora_status`PHP, Laravel, Pollora &amp; WordPress versions, active theme, discovery cache status`wordpress_info`WordPress version, plugins, theme, multisite status, constants, locale`post_types_info`All registered custom post types with supports, taxonomies, and configuration`taxonomies_info`All registered taxonomies with associated post types`registered_hooks`Hooks discovered via `#[Action]` and `#[Filter]` attributes`active_theme_info`Theme structure, service providers, config files, Vite/Tailwind status, blocks`discovered_components`All auto-discovered components grouped by type (post types, taxonomies, hooks, schedules, REST routes)`wordpress_routes`All routes including `Route::wp()` with WordPress conditions and middleware`modules_info`Installed Laravel Modules with status`wp_option`Read any WordPress option by keyAI Guidelines
-------------

[](#ai-guidelines)

Guidelines are loaded automatically when Boost runs. They cover:

- Pollora architecture (Laravel + WordPress bridge)
- PHP 8 attributes (`#[PostType]`, `#[Taxonomy]`, `#[Action]`, `#[Filter]`, `#[Schedule]`, `#[WpRestRoute]`)
- WordPress routing with `Route::wp()` and template hierarchy
- Blade templating with Sage Directives
- Theme development conventions
- Available Artisan commands

Agent Skills
------------

[](#agent-skills)

Skills are activated on-demand when working on specific tasks:

SkillWhen it activates`pollora-post-types`Creating custom post types with attributes`pollora-taxonomies`Creating custom taxonomies`pollora-theming`Theme development (Blade, Vite, Tailwind, assets)`pollora-hooks`Registering WordPress actions &amp; filters`pollora-blocks`Gutenberg block development with JSX &amp; Tailwind`pollora-rest-api`REST API endpoints with `#[WpRestRoute]``pollora-scheduling`Scheduled tasks with `#[Schedule]``pollora-modules`Laravel Modules with auto-discoveryUpgrade Assistance
------------------

[](#upgrade-assistance)

Nectar provides MCP upgrade prompts that guide AI agents through Pollora major version upgrades. Prompts are **automatically registered** when the current project version matches.

PromptAvailable whenCovers`upgrade-pollora-v13`Pollora 12.x detectedLoop facade removal, config registration removal, CSRF middleware rename, Vite theme.json setup, WordPress 7.0, and moreThe upgrade prompt includes:

- Step-by-step process (assess → safety net → analyze → apply → update deps → clean up)
- All breaking changes with search patterns and before/after code examples
- Theme build pipeline updates (`@roots/vite-plugin`, `wordpressThemeJson`)
- Post-upgrade cleanup (`wp transient delete --all`)

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=nectar-config
```

```
// config/nectar.php
return [
    'enabled' => env('NECTAR_ENABLED', true),

    'mcp' => [
        'tools' => [
            'exclude' => [],   // Tool class names to exclude
            'include' => [],   // Additional tool class names to include
        ],
    ],
];
```

Requirements
------------

[](#requirements)

- PHP ^8.3
- Laravel 12.x or 13.x
- Pollora Framework (any version)
- Laravel Boost ^2.0

License
-------

[](#license)

Nectar is open-sourced software licensed under the [GPL-2.0-or-later](LICENSE).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance95

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

22d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b45e81c070e2ec0baf59b2a73a216632d76cdfb36c0ab168fd6d043b2c8fbc2?d=identicon)[pollora](/maintainers/pollora)

---

Top Contributors

[![ogorzalka](https://avatars.githubusercontent.com/u/149651?v=4)](https://github.com/ogorzalka "ogorzalka (7 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pollora-nectar/health.svg)

```
[![Health](https://phpackages.com/badges/pollora-nectar/health.svg)](https://phpackages.com/packages/pollora-nectar)
```

###  Alternatives

[mischasigtermans/laravel-altitude

Claude Code agents for the TALL stack, powered by Laravel Boost

12216.4k](/packages/mischasigtermans-laravel-altitude)[gonetone/laravel-boost-windsurf-extension

Laravel Boost extension package that provides Windsurf editor and Windsurf JetBrains plugin integration.

2513.6k](/packages/gonetone-laravel-boost-windsurf-extension)[aldesrahim/filament-compass

Comprehensive documentation for Filament v5, designed for LLMs and AI-assisted development.

102.6k](/packages/aldesrahim-filament-compass)

PHPackages © 2026

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