Download the PHP package ylsideas/laravel-additions without Composer

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

Laravel Additions

Latest Version on Packagist Build Status Quality Score Total Downloads

A package of developer tools and tweaks that can be used with Laravel 7.

Installation

You can install the package via composer:

Why?

I found myself doing common things in projects or just wanting a few of my custom choices in the development product.

Usage

Quick install for Macros and Helper files.

The following command can be used to create new php files for helpers and macros. These files will be added to the composer.json file and the composer dumpautoload command will be ran afterwards.

Publish Stubs

This library adds additional stubs over the defaults in Laravel 7 as of 19/4/20. Such additions are notifications and events stubs.

You can set the stubs directory of where to publish the stub using the app.php config.

Running php artisan stub:publish will place the stubs in the resources/stubs/ path. There you can edit the stubs that will be used for making new classes.

Testing Trait Hooks

Often you might want to use traits with tests to work with certain aspects. You can now use traits with annotations @afterAppCreated and @beforeAppDestroyed which hooks into the feature tests and calls the methods specified making it easy to switch functionality in and out for tests.

For example, you could create the trait:

Then in your test you can apply the trait knowing the @afterAppCreated annotation will be executed providing a new user allowing you to reject some boiler plate.

In fact a trait that works like this already exists in this set of tools, the WithUserAuthentication trait. Even tests in this package use these annotations to run setups of the test.

Setup command & Testing hooks

You can create a simple function to set up an application. This is useful if you want to be able to run multiple commands and other tasks. There is also an initial flag which can be used to denote the application is being set up for the first time. This command is designed to be used for local development. To make the setup command you should do the following:

This will create a LaravelAdditionsServerProvider in your application's Providers folder. You can then customise the setup hooks as well as the before and after test hook which will fire when you use the php artisan test command. The default hooks look like the following:

Test views generated by Mailable/Notification assertions

When testing a Mailable or Notification has been sent, the rendered view can have assertions made via a factory class which will build a callable to detect the email type, render it into HTML and then provide a ViewAssertion instance that you can perform assertions on.

Testing

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of laravel-additions with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.5
illuminate/support Version ^7.0
nunomaduro/laravel-mojito Version ^0.2.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 ylsideas/laravel-additions contains the following files

Loading the files please wait ....