Download the PHP package ediasoft/midjourney-api-php without Composer
On this page you can find all versions of the php package ediasoft/midjourney-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ediasoft/midjourney-api-php
More information about ediasoft/midjourney-api-php
Files in ediasoft/midjourney-api-php
Package midjourney-api-php
Short Description Midjourney API PHP Client for PHP.
License MIT
Informations about the package midjourney-api-php
Midjourney API client for PHP
The Midjourney PHP API Client Package is a comprehensive library that allows developers to interact with the Midjourney API through Discord. Midjourney is an AI platform that can generate image base your prompt. This PHP API client package aims to simplify the integration of the Midjourney API into your PHP applications, enabling you to access the powerful features of the Midjourney platform seamlessly.
Features
- Imagine: Create a image base your given prompt. This will return four different options to choose from.
- Upscale: Get the full size of the generated image.
Upcoming release
- Blend: Able to blend two or more images together.
- Describe It will generate four possible prompt base up the given image.
- Shorten Analyze your prompt and highlights and it wil suggests unnecessary words you could remove.
Installation
You can install the Midjourney PHP API Client Package using Composer. Run the following command:
composer require ediasoft/midjourney-api-php
Usage
Basic usage
Create a MidjourneyApiClient object with valid credentials and you will be able to access all the available commands. See the Imagine command down below:
Constructor
-
$channel_id
- Go to your discord channels and right click on the channel where the Midjourney Bot is active on. Click on Copy Channel IDIf you don't see this menu option you have to enable developer mode. Go to User Settings > Advanced (Under APP Settings) > Developer Mode (Enabled)
-
$authorization
- Caution: Discord strictly prohibits the use of automatic user accounts, also known as self-bots. Engaging in such activities can lead to the termination of your Discord account if detected. Therefore, we strongly advise against using self-bots to avoid any potential risks and consequences. Please be mindful of Discord's terms of service and use the platform responsibly and within its allowed guidelines.To get your user token, go to https://discord.com/channels/@me and open the Network tab inside the Developers Tools by pressing op F12. Locate the calls that is directing to the Discord API such as
friend-suggestions
and open the Request Headers tab and locate theAuthorization
and copy this value.
Commands
Imagine
Parameters
Check the documentation for the complete explanation.
Upcale
Documentation
For detailed information about the available endpoints and their parameters, please refer to the official Midjourney documentation.
Contributing
We welcome contributions from the community! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on our GitHub repository.
License
This package is open-source and released under the MIT License. Feel free to use and modify it according to your project needs.
Support
For any questions or support regarding the Midjourney PHP API Client Package, you can contact us at [email protected].
All versions of midjourney-api-php with dependencies
ext-curl Version *
ext-json Version *
ext-openssl Version *
composer/ca-bundle Version ^1.3.6