Download the PHP package othyn/laravel-notes without Composer

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

Laravel Notes

A centralised note store for any and all model entities. Finally, no longer a need for storing a notes field in each and every table! Ideal for system wide generic comment systems.

lint action tests action coverage packagist download packagist downloads count contributors forks stars open issues license

Install Latest Version · Report Bug · Request Feature

:notebook_with_decorative_cover: Table of Contents

:star2: About the Project

On a recent personal project, I was finding that I was utilising a notes field against practically all tables, with the functionality also shared. The idea being that the user could quickly leave notes against any entity in the system, in which centralising that saves a load of overhead in each table and repeat code. I also make use of a shared Livewire table that automatically loads Audit's (in which the awesome design of that package inspired this one) for a given Entity when viewing it. The table is automatically injected into the rendered view determined automatically by the URL slug, which was a perfect use case to replicate for the notes system, thus this library was born.

:space_invader: Tech Stack

:dart: Features

Future addition ideas to play around with:

:floppy_disk: Install

Installation can be done via Composer:

Then publish the configuration file and migration(s) into your application scope via:

Remember to check the default configuration aligns with your requirements (amending if necessary) and run your migrations to generate the new notes table!

Next you are going to want to head down to the configuration, so lets get started on usage! See you there.

Version Matrix

Here is the current version matrix for project supported versions of used frameworks and libraries.

Notes Version PHP Version Laravel Version
1.0.0 ^8.1 ^9.0

If you require support for an older version of Laravel, submit an issue as we may be able to look into dropping the version requirements down, as I don't think it needs to be this new. Or, feel free to submit a PR!

:hammer_and_wrench: Usage

Laravel Notes is simple in its implementation, to get started all you need to do is add the relevant interface and trait combo the Model you wish to store notes against.

:elephant: Models

So, you want to use Laravel Notes eh? I like you, lets get cooking. All you need to do is add the relevant interface and trait combo the Model you wish to store notes against:

That's it!

The following methods and properties will be exposed against the model:

As we are dealing with native Laravel relationships, all the usual Eloquent stuff also applies against the relationship method that is used:

This is what the default Note entity looks like, for easy property reference:

As you can see, there is IDE type hinting baked into the Contracts and default Model to assist with method and property discovery for all of the above.

If you need to go beyond that and really turn things up to 11, lets touch on what the configuration can do for you.

:wrench: Configuration

Given we published the configuration as part of the installation, you should now have an config/laravel-notes.php file within your project that you can edit. Below is a little detail on what each configuration option means and what it can do for you.

That's it! Want to contribute? Keep reading.

:bread: Contributing

See the contribution guide on how to get started. Thank you for contributing!

:toolbox: Project Tooling Quick Reference

There are only a few project commands, and it's the usual stuff:

That's about it, go make something cool and submit a PR!

:warning: License

Distributed under the MIT License. See LICENSE for more information.

:gem: Acknowledgements

Useful resources and libraries that have been used in the making of this project.


All versions of laravel-notes with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
friendsofphp/php-cs-fixer Version ^3.13
illuminate/support Version ^9.0
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 othyn/laravel-notes contains the following files

Loading the files please wait ....