Download the PHP package pborreli/message-bundle without Composer

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

Openpp Message Bundle

FOSMessageBundle + SonataAdminBundle

install

composer require openpp/message-bundle
composer require sonata-project/admin-bundle
composer require sonata-project/doctrine-orm-admin-bundle
composer update

config

# FOS User
fos_user:
    db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
    firewall_name: main
    user_class:     Application\FOS\UserBundle\Entity\User

    group:
        group_class: Application\FOS\UserBundle\Entity\Group

    registration:
        confirmation:
            enabled:    true
            from_email:
                address:        [email protected]
                sender_name:    openpp
    resetting:
        email:
            from_email:
                address:        [email protected]
                sender_name:    openpp

Enable Bundle

            // SONATA CORE & HELPER BUNDLES
            new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(),

            // USER
        new FOS\UserBundle\FOSUserBundle()

        // FOS MESSAGE
        new FOS\MessageBundle\FOSMessageBundle(),
        new Openpp\MessageBundle\OpenppMessageBundle(),

eazy-extends

php app/console sonata:easy-extends:generate -d src OpenppMessageBundle
php app/console sonata:easy-extends:generate -d src FOSUserBundle

Append Bundle

        new Application\Openpp\MessageBundle\ApplicationOpenppMessageBundle(),
        new Application\FOS\UserBundle\ApplicationFOSUserBundle(),

User class

<?php

namespace Application\FOS\UserBundle\Entity;

use FOS\UserBundle\Model\User as AbstractUser;

class User extends AbstractUser
{
}

config

fos_message:
    db_driver:          orm
    thread_class:       Application\Openpp\MessageBundle\Entity\Thread
    message_class:      Application\Openpp\MessageBundle\Entity\Message
openpp_message:
    monitoring_enable:  true
    monitoring_default: 0
    user_class:         Application\FOS\UserBundle\Entity\User

monitoring_enable を true にすることで、監視を有効にします。 監視が有効になると、 message の stats の値が STATUS_VALID(0) の場合のみ表示されます。 STATUSは3つあり、デフォルト値として monitoring_default に指定できます。 また、指定しない場合は null が入ります。

const STATUS_VALID = 0;
const STATUS_INVALID = 1;
const STATUS_MODERATE = 2;

schema

php app/console cache:clear
php app/console doctrine:schema:update --dump-sql
php app/console doctrine:schema:update --force

routing

fos_message:
    resource: "@OpenppMessageBundle/Resources/config/routing.xml"
    prefix: /message

sonata admin

        openpp.message.admin.message:
            label:            Message
            icon:            '<i class="fa fa-weixin"></i>'
            items:
                - openpp.message.admin.thread
                - openpp.message.admin.message

All versions of message-bundle with dependencies

PHP Build Version
Package Version
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 pborreli/message-bundle contains the following files

Loading the files please wait ....