PHPackages                             marein/php-nchan-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. marein/php-nchan-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

marein/php-nchan-client
=======================

A PHP https://nchan.io client.

3.1.3(5mo ago)1313.0k↓50%[2 issues](https://github.com/marein/php-nchan-client/issues)1MITPHPPHP ^7.4 || ^8.0CI passing

Since Apr 15Pushed 5mo ago5 watchersCompare

[ Source](https://github.com/marein/php-nchan-client)[ Packagist](https://packagist.org/packages/marein/php-nchan-client)[ RSS](/packages/marein-php-nchan-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (24)Used By (1)

php-nchan-client
================

[](#php-nchan-client)

[![CI](https://github.com/marein/php-nchan-client/workflows/CI/badge.svg?branch=master)](https://github.com/marein/php-nchan-client/workflows/CI/badge.svg?branch=master)

**Table of contents**

- [Overview](#overview)
- [Installation and requirements](#installation-and-requirements)
- [Usage](#usage)
    - [Publish a message](#publish-a-message)
    - [Get channel information](#get-channel-information)
    - [Delete a channel](#delete-a-channel)
    - [Nchan status information](#nchan-status-information)
    - [Authorize requests](#authorize-requests)
- [PSR-18 compatibility](#psr-18-compatibility)

Overview
--------

[](#overview)

This is a PHP client for .

Installation and requirements
-----------------------------

[](#installation-and-requirements)

```
composer require marein/php-nchan-client

```

If you want to use the [PSR-18 adapter](#psr-18-compatibility), install a library that implements PSR-18 http client ([see here](https://packagist.org/providers/psr/http-client-implementation)) and a library that implements PSR-17 http factories ([see here](https://packagist.org/providers/psr/http-factory-implementation)).

If you want to use the built-in http client (default if you don't set anything), enable the php configuration [allow\_url\_fopen](http://php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen).

Usage
-----

[](#usage)

The following code examples use the built-in http client.

### Publish a message

[](#publish-a-message)

 Show code```
