Download the PHP package fabricio872/random-message-bundle without Composer

On this page you can find all versions of the php package fabricio872/random-message-bundle. 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 random-message-bundle

GitHub tag (latest by date) GitHub last commit Packagist Downloads GitHub Repo stars

Random messages

Symfony bundle that gives you various funny messages you can display on loading screen or anywhere where you need some placeholder content

Installation

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

Applications that use Symfony Flex

Open a command console, enter your project directory and execute:

Applications that don't use Symfony Flex

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

Configuration options

Usage

First of all we need to pull messages from message repository. To do that execute this command: this command will go through all configured repositories and will try to download or update them.

note: it might come useful to include this command to be executed every time you do composer install or composer update to do that in your composer.json look for and in add under new line with ,

For receiving random message you can use Dependency injection inside your controller

or it can be used directly inside your template:

Contributing

You can create your own messages or even contribute them for all to enjoy

Creating and configuring repository

For creating new messages you need to have new empty git repository for example on GitHub and add https link to your list of repositories like shown bellow:

note: repolace and with your actual values

Creating new messages

Ok so about creating new repo for your messages well... it is not necessary I was lying you can totally create messages to default repo, but you wouldn't be able to download them on deployment server.
Well since you have an empty repo why not just use it.

Pushing messages

So we have an empty repo and json file with new messages it is time to actually push them to Github.

Contributing messages to mainline repo

If you want to share your messages with whole world do same thing as you did on step: Creating and configuring repository but don't create new empty repository but fork this: instead. And then continue as with empty repository.

note: To fork a repo on GitHub go to repository you want to fork and click on Fork button on top right corner.


All versions of random-message-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/http-kernel Version ^6.1
symfony/yaml Version ^6.1
symfony/event-dispatcher Version ^6.1
symfony/event-dispatcher-contracts Version ^3.1
symfony/twig-bundle Version ^6.1
symfony/serializer Version ^6.1
doctrine/collections Version ^2.1
symfony/validator Version ^6.1
whitecube/lingua Version ^1.1
symfony/http-client Version ^6.1
nyholm/psr7 Version ^1.5
czproject/git-php Version ^4.1
symfony/console Version ^6.1
symfony/config Version ^6.1
symfony/string Version ^6.1
symfony/dependency-injection Version ^6.2
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 fabricio872/random-message-bundle contains the following files

Loading the files please wait ....