- About the Project
- Getting Started
- Authentication Configuration (GitHub)
- Contributing
- License
- Contact
PHP Contributing is designed to help new contributors find beginner-friendly issues in open source projects, making it easier to start contributing to the open source community.
-
Clone the repository:
git clone https://github.com/Danielopes7/php-contributing.git
cd php-contributing
Copy the example environment file and set up the environment variables:
-
Copy the example environment file and set up the environment variables:
cp .env.example .env
-
Install dependencies using Composer:
composer install
-
Generate the application key and run database migrations:
php artisan key:generate
php artisan migrate
-
Install front-end dependencies and start the development environment:
npm install
npm run dev
-
Start the Laravel development server:
php artisan serve
Visit http://localhost:8000 to see the application in action.
If you prefer running the project in Docker using Laravel Sail, follow these steps:
-
Build and start the Docker container using Laravel Sail:
./vendor/bin/sail up
./vendor/bin/sail artisan key:generate
./vendor/bin/sail artisan migrate
./vendor/bin/sail npm install
./vendor/bin/sail npm run dev
Visit http://localhost to see the application in action.
Before running the project, you need to configure authentication settings for GitHub.
This project uses Laravel GitHub to interact with the GitHub API. Laravel GitHub requires connection configuration.
To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish --provider="GrahamCampbell\GitHub\GitHubServiceProvider"
This will create a config/github.php
file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.
There are two config options:
This option ('default'
) is where you may specify which of the connections below you wish to use as your default connection for all work. Of course, you may use many connections at once using the manager class. The default value for this setting is 'main'
.
This option ('connections'
) is where each of the connections are setup for your application. Example configuration has been included, but you may add as many connections as you would like. Note that the 5 supported authentication methods are: "application"
, "jwt"
, "none"
, "private"
, and "token"
.
This option ('cache'
) is where each of the cache configurations setup for your application. Only the "illuminate" driver is provided out of the box. Example configuration has been included.
We welcome contributions from the community!
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or feedback, feel free to reach out by creating an issue in the repository.