Download the PHP package rin-project/fast-crud without Composer

On this page you can find all versions of the php package rin-project/fast-crud. 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 fast-crud

FastCurdBundle

Lets Make CRUD Very Simple! If you have any funny ideas, write issues.

Prerequisites

Testing Environment

Installation

Open a command console, enter your project directory and install fast-crud from composer:

$ composer require rin-project/fast-crud

Add bundle config to App\Kernel.php for registring bundle if you're not using Flex:

return [
    // ...

    // add this line
    RinProject\FastCrudBundle\FastCrudBundle::class => ['all' => true],
];

Import default config in config/packages/framework.yaml:

# config/packages/framework.yaml
imports:
    - { resource: "@FastCrudBundle/Resources/config/config.yaml" }

Import default routes in config/routes.yaml (optional):

# config/routes.yaml
fast-crud-route:
    resource: "@FastCrudBundle/Resources/config/routes.yaml"

If you want to catch all exceptions automatics, enable exception interceptor in config file config/packages/framework.yaml:

# config/packages/framework.yaml
fast_crud:
    exception_interceptor:
        enabled: true
        effective_pattern: /^\/(api|manage)\/.*$/

Usage

Generate by command

C: create
R: retrieve
U: update
D: delete
L: list

Sample:

$ php bin/console make:fast-crud RUDL App:Content
$ php bin/console make:fast-crud RL App:Region

Or generate manually

If you have the same PRiMARY NAME of Entity, Controller and Service, like User, UserController, UserService.

Create a Fast-CRUD service:

namespace App\Service;

use RinProject\FastCrudBundle\Service\CrudService;

final class UserService extends CrudService {}

Create a controller inherit CrudController:

namespace App\Api\Controller;

use RinProject\FastCrudBundle\Controller\CrudController;
use RinProject\FastCrudBundle\View\ApiView;
use RinProject\FastCrudBundle\View\Mixin\SingleCreateAndUpdateApiViewMixin;
use RinProject\FastCrudBundle\View\Mixin\SingleRetrieveApiViewMixin;

/**
 * @Route("/api/user", name="api-user-")
 */
class UserController extends CrudController
{
    use ApiView, SingleRetrieveApiViewMixin, SingleCreateAndUpdateApiViewMixin;

    public function commonFilter()
    {
        return ['id' => $this->getUser()];
    }
}

Or you have the different PRIMARY NAME, like Staff, UserController and PersonService.

Service:

namespace App\Service;

use App\Entity\Staff;
use RinProject\FastCrudBundle\Service\CrudService;

final class PersonService extends CrudService
{
    function __construct(ContainerInterface $container)
    {
        parent::__construct($container, Staff::class);
    }
}

Controller:

namespace App\Api\Controller;

use App\Service\PersonService;
use RinProject\FastCrudBundle\Controller\CrudController;
use RinProject\FastCrudBundle\View\ApiView;
use RinProject\FastCrudBundle\View\Mixin\SingleCreateAndUpdateApiViewMixin;
use RinProject\FastCrudBundle\View\Mixin\SingleRetrieveApiViewMixin;

/**
 * @Route("/api/user", name="api-user-")
 */
class UserController extends CrudController
{
    use ApiView, SingleRetrieveApiViewMixin, SingleCreateAndUpdateApiViewMixin;

    public function __construct()
    {
        $this->serviceClass = PersonService::class;
    }

    public function commonFilter()
    {
        return ['id' => $this->getUser()];
    }
}

TO BE CONTINUE ...


All versions of fast-crud with dependencies

PHP Build Version
Package Version
Requires ext-ctype Version *
ext-iconv Version *
symfony/dotenv Version 5.1.*
symfony/flex Version ^1.3.1
symfony/framework-bundle Version 5.1.*
sensio/framework-extra-bundle Version ^5.5
symfony/yaml Version 5.1.*
php Version ^7.1.3
knplabs/knp-paginator-bundle Version ^5.2
nelmio/api-doc-bundle Version ^3.6
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 rin-project/fast-crud contains the following files

Loading the files please wait ....