Download the PHP package jeremykenedy/laravel-blocker without Composer

On this page you can find all versions of the php package jeremykenedy/laravel-blocker. 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 laravel-blocker

Laravel Blocker

Laravel Blocker

Latest Stable Version Total Downloads Travis-CI Build StyleCI Scrutinizer Build Status Scrutinizer Code Quality License

Become a Patreon

Laravel Blocker (LaravelBlocker) is a middleware interface to block users, emails, ip addresses, domain names, cities, states, countries, continents, and regions from using your application, logging in, or registering. The types of items to be blocked can be extended to what you think via a seed. The items you are blocking have a CRUD interface along with a softdeletes interface.

Table of contents

Can work out the box with or without the following roles packages:

Features

LaravelBlocker Features
Easy to use middlware that can be applied directly to controller and/or routes
Full CRUD (Create, Read, Update, Delete) interface for adding blocked items
Lots of easily customizable options through .env file variables
Seeded blocked types with ability to add own published seeds
Seeded blocked items with ability to add own published seeds
Softdeletes with easy to use restore and destroy interface
Uses laravelcollective/html package for secure HTML forms
Uses eklundkristoffer/seedster for optional default seeds
Makes use of proper custom request classes structure
Can use pagination if desired for dashboards
Front end Bootstrap version can be changed
Uses localization language files
Ajax search for blocked items
Configurable blocked action

Requirements

Required Packages

(included in this package)

Installation Instructions

  1. From your projects root folder in terminal run:

    Laravel 5.8+ use:

    Laravel 5.7 and below use:

  2. Register the package

In config/app.php section under aliases with the following:

  1. Publish the packages views, config file, assets, and language files by running the following from your projects root folder:

Publish All Assets

Publish Specific Assets

Usage

From Route File:
Route Group Example:
Individual Route Examples:
From Controller File:
Controller File Example:

Configuration

There are many configurable options which have all been extended to be able to configured via .env file variables. Editing the configuration file directly is not needed becuase of this.

Testing, Faker, and this package

This package is great at blocking unwanted content from your application, but your configuration may conflict with auto generated content in your Laravel Factories. A common example is when your application is set to block email addresses that match @example.com, one of the most common email address TLD generated by $faker->safeEmail.

To avoid this package throwing inaccurate failures with auto-generated models, make sure you disable this package in your phpunit.xml configuration file:

Environment File

Routes

Routes In-depth

Screenshots

Laravel Blocker Dashboard Laravel Blocker Search Laravel Blocker Create Laravel Blocker View Laravel Blocker Edit Laravel Blocker Delete Modal Laravel Blocker Deleted Dashboard Laravel Blocker Destroy Modal Laravel Blocker Flash Message Laravel Blocker Restore Modal Laravel Blocker Restore Flash Message

File Tree

License

LaravelBlocker is licensed under the MIT license. Enjoy!

Contributors

Thanks goes to these wonderful people (emoji key):

Jeremy Kenedy
Jeremy Kenedy

💻

This project follows the all-contributors specification. Contributions of any kind welcome!


All versions of laravel-blocker with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0|^8.1|^8.2
eklundkristoffer/seedster Version ^7.0
laravelcollective/html Version ^6.4
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 jeremykenedy/laravel-blocker contains the following files

Loading the files please wait ....