|
8 | 8 |
|
9 | 9 | <p align="center">
|
10 | 10 |
|
11 |
| - <h3 align="center">📦 Basic laravel insallation if you dont have composer install or you just too lazy to install composer 📦</h3> |
| 11 | + <h3 align="center">📦 Installing Laravel without using composer or laravel sail 📦</h3> |
12 | 12 |
|
13 | 13 | <p align="center">
|
14 | 14 | </a>
|
15 | 15 | <a href="https://www.php.net">
|
16 | 16 | <img src="https://img.shields.io/badge/php-%3E%3D7.4-%23777BB4" />
|
17 | 17 | </a>
|
18 | 18 | <a href="https://laravel.com">
|
19 |
| - <img src="https://img.shields.io/badge/laravel-8.83 | 9.34 -%23EC4E3D" /> |
| 19 | + <img src="https://img.shields.io/badge/laravel-8.83 | 9.48 -%23EC4E3D" /> |
20 | 20 | </a>
|
21 | 21 | </p>
|
22 | 22 |
|
23 | 23 |
|
24 | 24 | </p>
|
25 | 25 |
|
26 |
| -## What is this? |
27 |
| -A basic laravel setup with already composer install running. So you dont have to install any composer or sail (docker) to run laravel. |
28 | 26 |
|
29 | 27 | ## Problem Statement
|
30 | 28 | There is many time I need to create a Laravel project but there is no composer install on the machine or I just cant install composer due to sudo issue.
|
31 | 29 |
|
32 |
| -This happen many times, especially during new docker installation and it's feel like a sin to install composer on docker just to run it once and then never touch it again. |
| 30 | +This happen many times, especially during new docker installation and it's feel like a sin to install composer on a docker just to run it once and then never touch it again. |
| 31 | + |
| 32 | +## What is this? |
| 33 | +A bash script to install laravel with vendor folder pre-installed. So you dont have to install any composer or sail (docker) to run laravel. |
33 | 34 |
|
34 |
| -## Installation |
35 | 35 |
|
36 |
| -**Prerequisite** |
| 36 | +## Prerequisite |
37 | 37 |
|
38 | 38 | | Version | PHP(*) |
|
39 | 39 | |---------|---------|
|
40 | 40 | | Laravel 8 | 7.3-8.1 |
|
41 | 41 | | Laravel 9 | 8.0-8.1 |
|
42 | 42 | | Laravel 10 | 8.1 |
|
43 | 43 |
|
44 |
| -* To install, use <b>CURL</b> method as below |
| 44 | +## Installation |
| 45 | + |
| 46 | +To start installing Laravel, run below *curl* or *wget* command |
| 47 | + |
| 48 | +- If you prefer to use CURL |
45 | 49 | ```sh
|
46 | 50 | bash <(curl -s https://raw.githubusercontent.com/alifdarsim/laravel-no-composer/master/curl.sh)
|
47 | 51 | ```
|
48 | 52 |
|
49 |
| -* Or if you dont have curl installed, use <b>wget</b> instead |
| 53 | +- Or you want wget instead |
50 | 54 | ```sh
|
51 | 55 | bash <(wget -O - https://raw.githubusercontent.com/alifdarsim/laravel-no-composer/master/wget.sh)
|
52 | 56 | ```
|
53 | 57 |
|
54 |
| -After the installation finish, run below command to run laravel |
| 58 | +You will be promped to name your Laravel project and choose Laravel version to install |
| 59 | +```sh |
| 60 | +Enter your Laravel project name (eg: my-project) |
| 61 | + > my-project |
| 62 | +Choose Laravel version to install: |
| 63 | + Laravel 8.x |
| 64 | + > Laravel 9.x |
| 65 | + Laravel 10.x |
| 66 | +``` |
| 67 | + |
55 | 68 |
|
56 |
| -1. Generate application key: |
| 69 | +After the installation finish, run below command to run your laravel project |
| 70 | + |
| 71 | +```sh |
| 72 | +cd my-project |
| 73 | +php artisan serve |
| 74 | +``` |
57 | 75 |
|
58 |
| - ```shell |
59 |
| - cd your-project-name |
60 |
| - ``` |
| 76 | +Voilaaa! You just success installing laravel without using composer or laravel sail. After this, you can continue the normal laravel setup installation such as **php artisan migrate** |
61 | 77 |
|
62 |
| -2. Start the server (local): |
| 78 | +## Troubleshooting |
63 | 79 |
|
64 |
| - ```shell |
65 |
| - php artisan serve |
66 |
| - ``` |
| 80 | +**Q**: I got an error when using this package. |
67 | 81 |
|
68 |
| -Voilaaa! You just install laravel without using composer or laravel sail. After this, you can continue the normal laravel setup installation such as 'php artisan migrate' |
| 82 | +**A**: Most error happen due to missing PHP dependencies required by Laravel itself. Simply make sure you install all of the PHP extension needed depends on your PHP version as shown <a href="https://stackoverflow.com/a/40816033/13228282">here</a> |
69 | 83 |
|
70 |
| -## Trobubleshooting |
| 84 | +## Screenshot |
71 | 85 |
|
72 |
| -**Q**: I got an error when running using this package. |
| 86 | +<img width="500" src="https://raw.githubusercontent.com/alifdarsim/laravel-no-composer/master/screenshot.png" /> |
73 | 87 |
|
74 |
| -**A**: Most error happen is when you try running this project without the required PHP extension needed by Laravel. Simply make sure you install all of the PHP extension required as shown <a href="https://stackoverflow.com/a/40816033/13228282">here</a> |
75 | 88 |
|
76 | 89 | ## Support
|
77 | 90 |
|
78 |
| -<p>You can show your support by starring this project.</p> |
| 91 | +<p>You can show your support by starring this project or buy me some coffee</p> |
79 | 92 | <a href="https://github.com/alifdarsim/laravel-no-composer/stargazers">
|
80 | 93 | <img src="https://img.shields.io/github/stars/alifdarsim/laravel-no-composer?style=social" alt="Github Star">
|
81 | 94 | </a>
|
82 | 95 |
|
| 96 | +<a href="https://www.buymeacoffee.com/alifdarsim" style="border-radius:50%" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a> |
| 97 | + |
| 98 | + |
| 99 | + |
83 | 100 | ## Contribute
|
84 | 101 |
|
85 | 102 | To contribute, see the [contributing guide](https://github.com/alifdarsim/laravel-no-composer/blob/master/CONTRIBUTING.md)
|
|
0 commit comments