Download the PHP package nassiry/laravel-encoder without Composer

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

# Laravel Encoder Package ![Tests](https://github.com/nassiry/laravel-encoder/actions/workflows/tests.yml/badge.svg) ![Packagist Downloads](https://img.shields.io/packagist/dt/nassiry/laravel-encoder) ![Packagist Version](https://img.shields.io/packagist/v/nassiry/laravel-encoder) ![Laravel](https://img.shields.io/badge/Laravel-10%20%7C%2011-red) ![PHP](https://img.shields.io/badge/PHP-%5E8.1-blue) ![License](https://img.shields.io/github/license/nassiry/laravel-encoder) ![Header Image](./assets/laravel-encoder.png)

The Laravel Encoder package provides a robust and secure way to encode and decode IDs & Strings using customizable Base encoding mechanisms (Base62). With support for variable-length encoding, mappers for added security, and seamless integration with Laravel, this package is ideal for obfuscating sensitive data or creating URL-safe identifiers.

⚠️ Note: This package is meant for obfuscation, not encryption. Do not use it for storing or transmitting sensitive data securely.

Table Of Contents

  1. Features
  2. Requirements
  3. Installation
  4. Quick Example
    • Encode & Decode an ID
    • Encode & Decode a String
  5. Documentation
    • Laravel Integration
    • Standalone PHP Usage
    • Configuration
    • Custom Bases
    • Exception Handling
    • Testing & Contributing
  6. Why I Built This
  7. Why Base62?
  8. Why Choose This Package?
  9. Contributing
  10. Changelog
  11. License

Features

Requirements

Installation

Step 1: Install via Composer

Quick Example

Documentation

Laravel Integration

Encode/decode strings and IDs using Laravel container, facades, or dependency injection.

Standalone PHP Usage

Use in any PHP project, no Laravel required.

Configuration

Customize encoding behavior, mappers, and defaults.

Custom Bases

Add your own Base58, Base64, or custom encoders.

Exception Handling

Covers validation, decoding issues, and base errors.

Testing & Contributing

Run the test suite or contribute improvements.

Why I Built This

Laravel's encryption produced long strings, and Base64 needed extra steps to be URL-safe. I wanted a clean, simple way to encode IDs and strings short, URL-safe, and easy to configure. Full Story & Benefits

Why Base62?

Read the Reasoning

Conclusion: Why Choose This Package?

Final Thoughts

Contributing

Feel free to submit issues or pull requests to improve the package. Contributions are welcome! Let’s improve it together!

Changelog

See CHANGELOG for release details.

License

This package is open-source software licensed under the MIT license.


All versions of laravel-encoder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-mbstring Version *
ext-bcmath Version *
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 nassiry/laravel-encoder contains the following files

Loading the files please wait ....