PN Scripts

API

PN Posts

Log in, take a token, publish a post. The public list only returns what you published.

  • Laravel 13
  • PHP 8.3
  • Laravel Sanctum
  • MySQL
  • Docker

This page is the overview. You get the files on GitHub or the store. Hosting plans are the only thing we sell here.

PN Posts

Why it exists

The gap

A blank Laravel API has Sanctum installed and nothing useful to call.

What you take

Token auth plus JSON for posts and categories. Drafts never hit the public index.

What changes

One curl to log in. One curl to publish.

A small REST kit. Not GraphQL. Not the PN Press reading site.

Who it is for

Use it when

  • A mobile or SPA client that needs a tiny blog backend.
  • Learning Sanctum on a real resource, not only /api/user.

Built for

  • Developers who want a REST baseline they can read in an hour.
  • Teams that need a small Sanctum API on current Laravel.

What you get

A token you can hold

Register and login return a Sanctum token. Logout revokes it. No session dance for a SPA.

Posts and categories

Public readers see published posts. Writers create and update with the token. Drafts stay off the list.

Current Laravel

The kit runs on Laravel 13 and PHP 8.3. Routing is bootstrap/app.php. Sanctum tokens still gate writes.

Specs

Pricing
Open Source
License
MIT
Deployment
Self-hosted
Maturity
General Availability
Support
Community

Stack

  • Laravel 13
  • PHP 8.3
  • Laravel Sanctum
  • MySQL
  • Docker

Clone PN Posts

Public MIT repository. This page is the overview. Payment does not happen here.

This page is the overview. You get the files on GitHub or the store. Hosting plans are the only thing we sell here.

Questions

Laravel 13. PHP 8.3 is the minimum. Clone the public repository and start from there.

No. PN Press is the Filament CMS on Products. PN Posts is the JSON kit.