Download the PHP package ns/admin-bundle without Composer

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

AdminBundle

Simple framework for generating SF4/5 admin. Allows you to create simple admin pages for managing entities by creating a basic entity, service, repository, and controller class for each entity.

Requires more coding than using an admin generator like Sonata, but allows for much greater flexibility by ditching complex configurators for simple, easily-overridden and extended classes.

Installation

Require the AdminBundle

composer require ns/admin-bundle

add it to your project bundles.php

NS\AdminBundle\NSAdminBundle::class => ['all' => true],

and require the routing config in your project routes.yaml file

Create your entity, and extend AdminSoftDeletableEntity. Remember to define a __toString() method:

You can extend BaseAdminEntity instead, if you don't need soft delete functionality.

Create the entity repository, extend AbstractAdminManagedRepository, and define the constructor:

Create the entity service, extend AdminService, and define the getClass() method:

Create the edit form for your entity:

Create the admin list template for your entity, extending '@NSAdmin/list.html.twig'. Define the following blocks:

If using a 'view' page instead of proceeding straight from the list to the edit form, override view_button, uncomment the button code, and modify as needed, then create the view template and extend '@NSAdmin/view.html.twig'

Create the admin controller for your entity, extending AbstractAdminController and define the following methods:

The built-in routing will automatically route requests to a controller matching the format %Entityclass%AdminController, where %Entityclass% is an initial-caps variant of your entity class name.

{{ path('admin_model_index', {'_admin_model'=>'foobar'}) }}

For our example of FooBar, and admin controller class of FoobarAdminController will be automatically routed to; FooBarAdminController will require manual routing.

To add an entry to the MenuBuilder in ColorAdminBundle, use the parameters ['route' => 'admin_model_index', 'routeParameters' => ['_admin_model' => 'foobar']]


All versions of admin-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 ns/admin-bundle contains the following files

Loading the files please wait ....