Download the PHP package flagrow/serve without Composer

On this page you can find all versions of the php package flagrow/serve. 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 serve

Serve by Flagrow logo Flagrow, a project of Gravure

MIT license Latest Stable Version Total Downloads Donate Join our Discord server

Add the serve command to Flarum. This will allow you to start Flarum into the PHP development server via a simple command.

This package is made for developers, it should probably not be installed on production servers. Use at your own risks !

Install

Use Bazaar or install manually:

composer require flagrow/serve

Usage

Enable the extension via the admin dashboard. You can then start the dev server from the Flarum root folder with:

php vendor/bin/flagrow serve

The command has the same options as the Laravel serve command:

php vendor/bin/flagrow serve --host=0.0.0.0 --port=4000

You can check the help via:

php vendor/bin/flagrow help serve

This extension uses the flagrow/console package to provide non-standard commands in Flarum. "Flagrow Console" is shown in the extension tab as well, but you don't have to enable it in order to use the serve command. See the Flagrow Console README to see what else is available if you enable it.

Standalone usage

If Flarum is not yet installed or you can't enable the extension, you can also use the router script directly:

php -S 127.0.0.1:8000 vendor/flagrow/serve/src/server.php

Support our work

We prefer to keep our work available to everyone. In order to do so we rely on voluntary contributions on Patreon.

Security

If you discover a security vulnerability within Serve, please send an email to the Gravure team at [email protected]. All security vulnerabilities will be promptly addressed.

Please include as many details as possible. You can use php flarum info to get the PHP, Flarum and extension versions installed.

Links

An extension by Flagrow, a project of Gravure.


All versions of serve with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^0.1.0-beta.6
flagrow/console Version ^0.1.0
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 flagrow/serve contains the following files

Loading the files please wait ....