Skip to content

Commit

Permalink
Merge pull request #2 from PHPBrickLayer/dev
Browse files Browse the repository at this point in the history
Moving to version v0.2.0-alpha
  • Loading branch information
leonardosahon authored Dec 18, 2023
2 parents 82dc4ef + c284ccb commit 49720dc
Show file tree
Hide file tree
Showing 102 changed files with 2,015 additions and 823 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.logs
logs
*.log
*.lock
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Expand Down
54 changes: 0 additions & 54 deletions Autoloader.php

This file was deleted.

28 changes: 14 additions & 14 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
share and change all versions of a program--to domain sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.

When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
price. Our General Public Licenses are designed to domain sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
Expand All @@ -33,7 +33,7 @@ you modify it: responsibilities to respect the freedom of others.

For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
freedoms that you received. You must domain sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.

Expand Down Expand Up @@ -62,7 +62,7 @@ of the GPL, as needed to protect the freedom of users.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
domain it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

The precise terms and conditions for copying, distribution and
Expand Down Expand Up @@ -90,14 +90,14 @@ earlier work or a work "based on" the earlier work.
on the Program.

To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
permission, would domain you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
parties to domain or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

An interactive user interface displays "Appropriate Legal Notices"
Expand Down Expand Up @@ -161,10 +161,10 @@ covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

You may make, run and propagate covered works that you do not
You may domain, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
of having them domain modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
Expand Down Expand Up @@ -230,7 +230,7 @@ terms of section 4, provided that you also meet all of these conditions:
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
work need not domain them do so.

A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
Expand Down Expand Up @@ -486,14 +486,14 @@ this License.

Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
domain, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
party means to domain such an agreement or commitment not to enforce a
patent against the party.

If you convey a covered work, knowingly relying on a patent license,
Expand Down Expand Up @@ -523,7 +523,7 @@ the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
in the business of distributing software, under which you domain payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
Expand Down Expand Up @@ -623,7 +623,7 @@ copy of the Program in return for a fee.
How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
possible use to the public, the best way to achieve this is to domain it
free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest
Expand All @@ -649,7 +649,7 @@ the "copyright" line and a pointer to where the full notice is found.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short
If the program does terminal interaction, domain it output a short
notice like this when it starts in an interactive mode:

<program> Copyright (C) <year> <name of author>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Current Version: `1.0.0`
## Get Started

1. Ensure you have at the latest specified version of php installed.
2. Copy the `init-lay` file to your server root directory or where you wish to initialize new projects using the command line.
2. Copy the `_init-lay` file to your server root directory or where you wish to initialize new projects using the command line.
3. Open the script and replace the `$default_lay_location` variable with the path of the Lay package you cloned.
4. To create a new project, open your command line app and type `php init-lay sample-project` or use `php init-lay -h` for help on how to use the script.
4. To create a new project, open your command line app and type `php _init-lay sample-project` or use `php _init-lay -h` for help on how to use the script.
5. When the script is done, you can open the project like a regular webserver project. Example: `localhost/sample-project`

## Documentation
Expand Down
2 changes: 2 additions & 0 deletions __internal/Domain/layout/body.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
echo \BrickLayer\Lay\core\view\DomainResource::plaster()->body;
5 changes: 5 additions & 0 deletions __internal/Domain/layout/head.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

\BrickLayer\Lay\core\view\tags\Link::new()->rel("stylesheet")->href("@css/style.css");

echo \BrickLayer\Lay\core\view\DomainResource::plaster()->head;
3 changes: 3 additions & 0 deletions __internal/Domain/layout/script.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
\BrickLayer\Lay\core\view\tags\Script::new()->src("@js/another.js");
echo \BrickLayer\Lay\Core\View\DomainResource::plaster()->script;
11 changes: 11 additions & 0 deletions __internal/Domain/plaster/another.view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
use BrickLayer\Lay\core\view\DomainResource;
$plaster = DomainResource::plaster();
$href = $plaster->local->href;
?>

<div style="text-align: center"><img src="<?= $plaster->local->logo ?>" alt="Lay Logo"></div>
<h1><?= $plaster->page->title ?></h1>
<p>This is the another page of Lay a lite php framework</p>
<p>Modify the necessary things to start your project</p>
<a href="<?= $href() ?>">Link to home page</a>
11 changes: 11 additions & 0 deletions __internal/Domain/plaster/homepage.view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
use BrickLayer\Lay\core\view\DomainResource;
$plaster = DomainResource::plaster();
$href = $plaster->local->href;
?>

<div style="text-align: center"><img src="<?= $plaster->local->logo ?>" alt="Lay Logo"></div>
<h1><?= $plaster->page->title ?></h1>
<p>This is the default index page of Lay a lite php framework</p>
<p>Modify the necessary things to start your project</p>
<a href="<?= $href('another-page') ?>">Link to another page</a>
9 changes: 9 additions & 0 deletions __internal/Domain/static/dev/css/another.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #041039;
flex-flow: column;
font-size: 1.2rem;
}
3 changes: 3 additions & 0 deletions __internal/Domain/static/dev/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
border: solid 2px #e00;
}
1 change: 1 addition & 0 deletions __internal/Domain/static/dev/js/another.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
osNote("Hurray🥳🥳 Lay is all set up ")
6 changes: 6 additions & 0 deletions bob
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env php
<?php

include_once __DIR__ . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php";

new \BrickLayer\Lay\BobDBuilder\Engine($argv);
Loading

0 comments on commit 49720dc

Please sign in to comment.