🤝 Contributing to Laravel Crypto
We welcome contributions to the Laravel Crypto package! Whether you're fixing a bug, adding a feature, or improving the documentation, your contributions are highly valued.
Steps to Contribute
-
Fork the Repository
First, fork the repository on GitHub. This will allow you to make changes and submit a pull request. -
Clone Your Fork
Clone the repository to your local machine:git clone https://github.com/your-username/laravel-crypto.git
-
Create a Branch Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Make Your Changes
Make the necessary changes in the codebase. If you’re fixing a bug or adding a feature, please ensure that your code adheres to the coding standards and passes existing tests.
- Run Tests
If you’re adding new functionality or fixing an issue, please write tests to verify that your changes work as expected. This ensures the stability and reliability of the package.
- Run Tests Before submitting your pull request, run the tests to make sure everything works properly:
./vendor/bin/pest
- Commit Your Changes
Once you’ve made your changes, commit them to your branch:
git add .
git commit -m "feat: add your commit message here"
- Push Changes
Push your changes to your fork on GitHub:
git push origin feature/your-feature-name
- Create a Pull Request
Go to your GitHub fork, click on the Pull Request tab, and submit a pull request. Make sure to describe your changes in detail, explaining what problem your changes solve or what feature you’ve added.
🧪 Testing Laravel Crypto Locally
To test the Laravel Crypto package locally on your system, follow the steps below:
- Clone the Repository
If you haven’t already, clone the repository to your local machine:
git clone https://github.com/akira-io/laravel-crypto.git
- Install Dependencies
Navigate to the project directory and install the required dependencies using Composer:
cd laravel-crypto
composer install
- Set Up Your Laravel Application
- Set up your Laravel application by creating a
.env
file and generating an application key:
cp .env.example .env
php artisan key:generate
- Add the Laravel Crypto package to your Laravel app by requiring it via Composer:
composer require akira/laravel-crypto
- Publish the configuration file for the Laravel Crypto package:
php artisan vendor:publish --tag=crypto-config
- Generate an encryption key for secure data encryption:
php artisan crypto:generate-key