Download the PHP package nanato12/phine without Composer

On this page you can find all versions of the php package nanato12/phine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phine

Phine

A developer-friendly wrapper for the LINE Messaging API SDK for PHP.

Phine simplifies common LINE bot operations by providing intuitive message builders, event handlers, and convenient client methods.

Installation

Requirements

Quick Start

Client

The Client class extends MessagingApiApi from the official LINE SDK, so all original methods are available.

Message Builders

Phine provides convenient builders for creating LINE messages.

TextMessageBuilder

RawFlexMessageBuilder

Build Flex Messages from a JSON array. Useful when designing messages with the Flex Message Simulator.

ImageMessageBuilder

VideoMessageBuilder

AudioMessageBuilder

StickerMessageBuilder

LocationMessageBuilder

Client Methods

parseEventRequest

Parses the incoming webhook request body and validates the signature.

setEvent

Stores the current event in the client instance. Required before calling reply().

reply

Sends a reply message to the user. Must call setEvent() first.

push

Sends a push message to a specific user, group, or room.

sendMulticast

Sends a message to multiple users at once (up to 500 users).

sendBroadcast

Sends a message to all users who have added your bot as a friend.

getProfileFromUserID

Retrieves a user's profile. Automatically uses the appropriate API based on the event source (user, group, or room).

Event Handlers

Phine provides an event handling system to organize your bot logic.

BaseEventHandler

Create handlers for specific event types:

BaseCommandHandler

Create handlers that respond to specific text commands:

For commands with arguments, use prefix matching:

EventDispatcher

Register and dispatch events to your handlers:

License

Apache-2.0


All versions of phine with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
linecorp/line-bot-sdk Version ^12.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nanato12/phine contains the following files

Loading the files please wait ...