PHPackages                             bahricanli/laravel-publisher - 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. bahricanli/laravel-publisher

ActiveLibrary

bahricanli/laravel-publisher
============================

Connects your Laravel app to content-manager.tr — publish, update and delete posts via a secure token-based API.

1.0.3(today)03↑2900%MITPHPPHP &gt;=5.6.4

Since Jul 23Pushed todayCompare

[ Source](https://github.com/bahricanli/laravel-publisher)[ Packagist](https://packagist.org/packages/bahricanli/laravel-publisher)[ RSS](/packages/bahricanli-laravel-publisher/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (4)Used By (0)

BahriCanli Laravel Publisher
============================

[](#bahricanli-laravel-publisher)

Laravel uygulamanızı [content-manager.tr](https://content-manager.tr) ile bağlayan pakettir. Token tabanlı API üzerinden yazı oluşturma, güncelleme ve silme işlemlerini destekler.

WordPress eklentisi [bahricanli-publisher](https://github.com/bahricanli/bahricanli-publisher) ile aynı API sözleşmesini uygular.

---

Kurulum
-------

[](#kurulum)

```
composer require bahricanli/laravel-publisher
```

Config dosyasını yayınla:

```
php artisan vendor:publish --tag=bahricanli-publisher
```

---

Yapılandırma
------------

[](#yapılandırma)

`.env` dosyasına ekle:

```
CM_PUBLISHER_TOKEN=guclu-rastgele-token
CM_PUBLISHER_MODEL=App\Models\Post
CM_PUBLISHER_SITE_URL=https://www.example.com
```

`CM_PUBLISHER_TOKEN` değeri content-manager.tr'deki site ayarlarındaki **Plugin Token** alanıyla eşleşmelidir.

---

Model Gereksinimleri
--------------------

[](#model-gereksinimleri)

Eloquent modelinizin şu alanları içermesi gerekir:

AlanTürAçıklama`title`stringYazı başlığı`slug`stringURL slug'ı`content`textHTML içerik`excerpt`text|nullKısa özet`featured_image_url`string|nullÖne çıkan görsel URL`status`string`draft` veya `published``categories`array (JSON cast)Kategori listesi`tags`array (JSON cast)Etiket listesi---

Endpoint'ler
------------

[](#endpointler)

Tüm isteklerde `X-Content-Manager-Token` header'ı veya `_cm_token` POST parametresi gönderilmelidir.

MethodURLAçıklamaPOST`/cm/blog/create`Yeni yazı oluşturPOST`/cm/blog/update`Yazıyı güncelle (`page_id` parametresi ile)POST`/cm/blog/delete`Yazıyı sil (`page_id` parametresi ile)### Create — İstek Gövdesi

[](#create--i̇stek-gövdesi)

```
{
    "title": "Yazı Başlığı",
    "content": "HTML içerik...",
    "slug": "yazi-basligi",
    "excerpt": "Kısa özet.",
    "featured_image": "https://example.com/image.jpg",
    "categories": ["Seyahat", "Avrupa"],
    "tags": ["estonya", "tallinn"],
    "status": "draft"
}
```

### Create — Yanıt

[](#create--yanıt)

```
{
    "page_id": 42,
    "page_url": "https://www.example.com/yazi-basligi",
    "status": "draft"
}
```

### Update — İstek Gövdesi

[](#update--i̇stek-gövdesi)

```
{
    "page_id": 42,
    "title": "Güncellenmiş Başlık",
    "content": "Güncellenmiş içerik."
}
```

### Delete — İstek Gövdesi

[](#delete--i̇stek-gövdesi)

```
{
    "page_id": 42
}
```

---

content-manager.tr Ayarları
---------------------------

[](#content-managertr-ayarları)

Site eklerken:

- **Site Türü:** Laravel (Custom API)
- **API URL:** `https://www.example.com` (sitenizin kök URL'i)
- **Plugin Token:** `.env`'deki `CM_PUBLISHER_TOKEN` değeri

---

Prefix Değiştirme
-----------------

[](#prefix-değiştirme)

```
// config/publisher.php
'prefix' => 'api/content',
// Endpoint'ler: /api/content/blog/create, ...
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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

Every ~0 days

Total

3

Last Release

0d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.2PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4894f69d95bdf9814c8c0db5876852c4381ccaba0a2d98a224ea1269123217f8?d=identicon)[bmericc](/maintainers/bmericc)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bahricanli-laravel-publisher/health.svg)

```
[![Health](https://phpackages.com/badges/bahricanli-laravel-publisher/health.svg)](https://phpackages.com/packages/bahricanli-laravel-publisher)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M185](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k21](/packages/fleetbase-core-api)

PHPackages © 2026

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