Skip to content

[Package] Django's Class-Based Views (CBV) for Laravel. It keeps a 1:1 mapping with Django 2.0 codebase, behavior and naming while using Laravel's native features.

License

Notifications You must be signed in to change notification settings

NicolaCostantino/LaravelCBV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov

LaravelCBV

A package for Laravel implementing Django's Class-Based Views (CBV).

It keeps a 1:1 mapping with Django 2.0 codebase, behavior and naming while using Laravel's native features.

Table of Contents

Setup

PHP

Tested and developed on version: 7.2.*

Laravel

Tested and developed on version: 5.8.*

Requirements

Use Composer to install the requirements needed

composer install

Usage

The class View (which is the base class for the others CBVs) extends Illuminate's Controller.

Any LaravelCBV can be used as a common Laravel controller while inheriting all the very same feature of the corresponding Django's Class-Based Views.

Development

General

All the needed commands are listed as GNU make target rules in the Makefile file.
Each subfolder could contain a local Makefile file, if needed.

Code

The source code is hosted on GitHub.

Setup

Use Composer to install also the requirements for development and testing (Composer's default behavior)

composer install

or use the make rule:

make develop

Testing

Tests are executed using PHPUnit also for coverage.

Orchestral Testbench is used as support for testing the behavior of the package in a Laravel project.

Additional Integration and End-To-End tests can be done using an host Laravel project and local test cases.

Contributing

Pull requests are welcome!

For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author

Nicola Costantino

License

MIT as listed in LICENSE file
Copyright (c) 2019 Nicola Costantino

About

[Package] Django's Class-Based Views (CBV) for Laravel. It keeps a 1:1 mapping with Django 2.0 codebase, behavior and naming while using Laravel's native features.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published