Download the PHP package mh/page-bundle without Composer

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

PRODUCTION VERSION

Config file

knp

knp_paginator: page_range: 5 default_options: page_name: page sort_field_name: sort sort_direction_name: direction distinct: true filter_field_name: filterField filter_value_name: filterValue template: pagination: '@KnpPaginator/Pagination/twitter_bootstrap_v4_pagination.html.twig' sortable: '@KnpPaginator/Pagination/sortable_link.html.twig' filtration: '@KnpPaginator/Pagination/filtration.html.twig'

twig

add this to your twig config, so we have a global configuration service

twig: globals: config: '@Mh\PageBundle\Helper\TwigHelper'

security

/config/packages/securty.yaml

security: encoders: Mh\PageBundle\Entity\User: algorithm: auto providers: app_userprovider: entity: class: Mh\PageBundle\Entity\User property: email firewalls: dev: pattern: ^/((profiler|wdt)|css|images|js)/ security: false main: anonymous: true guard: authenticators:

routes

/config/routes.yaml

mh_page: resource: '@MhPageBundle/Resources/config/routes.yaml'

install demo

app/bin app:install

change the redirect after login

we redirect to the route mh_page_login_home, just override that

template base.html.twig

{% extends "@MhPage/base.html.twig" %}

template layout.html.twig

{% extends "@MhPage/layout.html.twig" %}

promote user to admin

./bin/console app:promote EMAIL

neat features

Copy clipboard, make a:

and on your element

click

Remember

Assets

./bin/console assets:install --symlink

Extend admin menu

If you need to add more admin items, make a subscriber with

make:subscriber for the request

use Mh\PageBundle\Helper\SiteHelper;

class RequestSubscriber implements EventSubscriberInterface { private $siteHelper;

public function __construct(SiteHelper $siteHelper)
{
    $this->siteHelper = $siteHelper;
}

public function onRequestEvent(RequestEvent $event)
{
    if (!$event->isMasterRequest()) return;

    $item = [
        'url' => 'profile_dashboard',
        'name' => 'Min profil',
    ];
    $this->siteHelper->addAdminItem($item, 5);
}

}

Sitemap

If you need to add more sitemaps, copy the Mh\PageBundle\Command\SitemapCommand

DEV VERSION

Config file

routes

/config/routes.yaml

mh_page: resource: '../src/Controller' name_prefix: mhpage

mh_page_wildcard: path: /{page} methods: [GET] controller: Mh\PageBundle\Controller\MainController::page name_prefix: mhpage

maker

/config/packages/maker.yaml

maker: root_namespace: Mh\PageBundle

doctrine

/config/packages/doctrine.yaml

doctrine: orm: mappings: MhPageBundle: is_bundle: false type: annotation dir: '%kernel.project_dir%/src/Entity' prefix: 'Mh\PageBundle\Entity' alias: 'MhPageBundle'


All versions of page-bundle with dependencies

PHP Build Version
Package Version
Requires cocur/slugify Version ^3.2
michelf/php-markdown Version ^1.9
knplabs/knp-paginator-bundle Version ^5.0
mh/collection Version ^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 mh/page-bundle contains the following files

Loading the files please wait ....