start rework for 2025
This commit is contained in:
parent
81c47d94ca
commit
b2fb8bee39
14 changed files with 214 additions and 1589 deletions
|
@ -17,21 +17,23 @@ Add the following content to the file:
|
|||
|
||||
```json
|
||||
{
|
||||
"name": "lubian/no-framework",
|
||||
"require": {
|
||||
"php": "^8.1"
|
||||
},
|
||||
"name": "lubiana/no-framework",
|
||||
"type": "project",
|
||||
"license": "MIT",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Lubian\\NoFramework\\": "src/"
|
||||
"Lubiana\\NoFramework\\": "src/"
|
||||
}
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "example",
|
||||
"email": "test@example.com"
|
||||
"name": "lubiana",
|
||||
"email": "lubiana@hannover.ccc.de"
|
||||
}
|
||||
]
|
||||
],
|
||||
"require": {
|
||||
"php": "^8.4"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -39,6 +41,9 @@ In the autoload part you can see that I am using the `Lubian\NoFramework` namesp
|
|||
whatever fits your project there, but from now on I will always use the `Lubian\NoFramework` namespace in my examples.
|
||||
Just replace it with your namespace in your own code.
|
||||
|
||||
In the `require` block I specified, that the minimum PHP Version to run this code is 8.4. That helps composer to find
|
||||
suitable versions of libraries we want to install later on.
|
||||
|
||||
I have also defined, that all my code and classes in the 'Lubian\NoFramework' namespace lives under the './src' folder.
|
||||
|
||||
As the Bootstrap.php file is placed in that directory we should
|
||||
|
@ -46,9 +51,11 @@ add the namespace to the File as well. Here is my current Bootstrap.php
|
|||
as a reference:
|
||||
|
||||
```php
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
namespace Lubian\NoFramework;
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Lubiana\NoFramework;
|
||||
|
||||
echo 'Hello World!';
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue