|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @var \App\View\AppView $this |
| 4 | + */ |
| 5 | +$this->assign('title', 'Listing Requirements'); |
| 6 | +?> |
| 7 | +<section class="px-4 py-10 sm:px-6 lg:px-8"> |
| 8 | + <div class="mx-auto max-w-4xl space-y-8"> |
| 9 | + <header class="space-y-3"> |
| 10 | + <p class="text-sm font-medium uppercase tracking-[0.2em] text-cake-red">Plugin Directory</p> |
| 11 | + <h1 class="text-4xl font-semibold text-base-content">Minimum requirements for being listed</h1> |
| 12 | + <p class="max-w-3xl text-base leading-7 text-base-content/70"> |
| 13 | + Packages are only listed when they are actual CakePHP plugins with an explicit Composer dependency on the CakePHP framework package or one of the official split packages. |
| 14 | + </p> |
| 15 | + </header> |
| 16 | + |
| 17 | + <div class="grid gap-6 md:grid-cols-2"> |
| 18 | + <article class="rounded-3xl border border-base-300 bg-base-100 p-6 shadow-sm"> |
| 19 | + <h2 class="text-xl font-semibold text-base-content">Required</h2> |
| 20 | + <ul class="mt-4 space-y-3 text-sm leading-6 text-base-content/75"> |
| 21 | + <li> |
| 22 | + The package must be published on Packagist as a |
| 23 | + <?= $this->element('code_chip', ['text' => 'cakephp-plugin', 'variant' => 'accent']) ?>. |
| 24 | + </li> |
| 25 | + <li>The package must not be abandoned.</li> |
| 26 | + <li>The package must have at least 10 downloads on packagist.org.</li> |
| 27 | + <li> |
| 28 | + Its |
| 29 | + <?= $this->element('code_chip', ['text' => 'require']) ?> |
| 30 | + section must explicitly contain either |
| 31 | + <?= $this->element('code_chip', ['text' => 'cakephp/cakephp', 'variant' => 'accent']) ?> |
| 32 | + or one of the official CakePHP split packages. |
| 33 | + </li> |
| 34 | + </ul> |
| 35 | + </article> |
| 36 | + |
| 37 | + <article class="rounded-3xl border border-base-300 bg-base-100 p-6 shadow-sm"> |
| 38 | + <h2 class="text-xl font-semibold text-base-content">Not enough on its own</h2> |
| 39 | + <ul class="mt-4 space-y-3 text-sm leading-6 text-base-content/75"> |
| 40 | + <li>Depending only on PSR interfaces or generic libraries does not qualify a package for listing.</li> |
| 41 | + <li>Suggesting CakePHP support in the README without a Composer dependency does not qualify.</li> |
| 42 | + <li> |
| 43 | + Only |
| 44 | + <?= $this->element('code_chip', ['text' => 'require']) ?> |
| 45 | + dependencies are considered for framework compatibility tags. |
| 46 | + </li> |
| 47 | + </ul> |
| 48 | + </article> |
| 49 | + </div> |
| 50 | + |
| 51 | + <article class="rounded-3xl border border-cake-red/20 bg-cake-red/5 p-6"> |
| 52 | + <h2 class="text-xl font-semibold text-base-content">Accepted Composer examples</h2> |
| 53 | + <div class="mt-4 grid gap-4 lg:grid-cols-2"> |
| 54 | + <div> |
| 55 | + <p class="mb-2 text-sm font-medium text-base-content/70">Framework package</p> |
| 56 | + <pre class="overflow-x-auto rounded-2xl bg-base-200 p-4 text-sm"><code>{ |
| 57 | + "name": "myusername/my-package-name", |
| 58 | + "type": "cakephp-plugin", |
| 59 | + "require": { |
| 60 | + "cakephp/cakephp": "^5.0" |
| 61 | + } |
| 62 | +}</code></pre> |
| 63 | + </div> |
| 64 | + <div> |
| 65 | + <p class="mb-2 text-sm font-medium text-base-content/70">Split package</p> |
| 66 | + <pre class="overflow-x-auto rounded-2xl bg-base-200 p-4 text-sm"><code>{ |
| 67 | + "name": "myusername/my-package-name", |
| 68 | + "type": "cakephp-plugin", |
| 69 | + "require": { |
| 70 | + "cakephp/orm": "^5.0" |
| 71 | + } |
| 72 | +}</code></pre> |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + </article> |
| 76 | + </div> |
| 77 | +</section> |
0 commit comments