bakeiro / light-php Goto Github PK
View Code? Open in Web Editor NEWEasy, Lightweight, open source and magic-free PHP framework
Home Page: https://bakeiro.github.io/Light-PHP-documentation/
License: MIT License
Easy, Lightweight, open source and magic-free PHP framework
Home Page: https://bakeiro.github.io/Light-PHP-documentation/
License: MIT License
this is a test issue
Hi, I found Uncaught Error: Class 'ZipArchive'
when trying to install light-php-site
$ composer create-project bakeiro/light-php-site
...
PHP Fatal error: Uncaught Error: Class 'ZipArchive' not found in /home/user/light-php-site/get-source-code.php:6
Stack trace:
#0 Command line code(1): require_once()
#1 {main}
thrown in /home/user/light-php-site/get-source-code.php on line 6
Script php -r "require_once('./get-source-code.php'); " handling the post-create-project-cmd event returned with error code 255
edit: I run Ubuntu 20.04 LTS
Describe the bug
Basically, Library\Database::query sometimes don't work, only in specific cases
To Reproduce
Bug description:
Database::query don't fetch result sometimes
example:
public function thisDontWork($agenda, $start, $end)
{
$param = array(":agenda" => $agenda, ":dia_inicio" => $start, ":dia_fin" => $end);
return Database::query("SELECT id_tarea, datos, cast(f_inicio AS DATETIME) AS f_inicio, cast(f_fin AS DATETIME) AS f_fin, id_agenda, cita_title, id_persona FROM crm_citas WHERE id_agenda LIKE '%:agenda%' AND presente != 5 AND cita_tipo != 'BG_CIERRE' AND cita_tipo != 'NO_DAR_CITA' AND (date(f_inicio) BETWEEN ':dia_inicio' AND ':dia_fin') ORDER BY f_inicio ASC", $param);
}
public function thisOneWorks($agenda, $start, $end)
{
return Database::$CONN->query("SELECT id_tarea, datos, cast(f_inicio AS DATETIME) AS f_inicio, cast(f_fin AS DATETIME) AS f_fin, id_agenda, cita_title, id_persona FROM crm_citas WHERE id_agenda LIKE '%".$agenda."%' AND presente != 5 AND cita_tipo != 'BG_CIERRE' AND cita_tipo != 'NO_DAR_CITA' AND (date(f_inicio) BETWEEN '".$start."' AND '".$end."') ORDER BY f_inicio ASC")->fetchAll(PDO::FETCH_ASSOC);
}
Params in the functions:
$agenda => Dra. Tuya
$start & $end => "2020-01-29"
Expected behavior
It should fetch the results, since the only difference is how I send the parameters.
Enviroment
Describe the bug
Here below is the error.
Creating a "bakeiro/light-php-site" project at "./light-php-site"
Info from https://repo.packagist.org: #StandWithUkraine
Cannot use bakeiro/light-php-site's latest version 0.96 as it requires php ^7.0 which is not satisfied by your platform.
Installing bakeiro/light-php-site (0.9)
Problem 1
- Root composer.json requires bakeiro/micro_php_template_engine, it could not be found in any version, there may be a typo in the package name.
Potential causes:
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
Enviroment
Additional context
it looks like related to bakeiro/micro_php_template_engine and "minimum-stability": "stable",
Any idea anyone?
Hi, use Library\Config; is empty.
....system/library/config.php): failed to open stream: No such file or directory
Interesting project. Any plans to add HMVC support? How hard would it be to import a project from CI to this?
Describe the bug
I had run the command composer create-project bakeiro/light-php on local.
To Reproduce
And i send all files on server. (i know it's not the good practice)
Expected behavior
The method isValidPath is no working correctly.
File does not exists....
So, my url is https://sub.domain/public
When i tried command : PHP -S localhost:8080 -t .\public
Nothing happens... xD
Could you help me?
that
Light-PHP/system/engine/Database.php
Line 20 in 94515f5
$smtp = Database::$CONN->prepare($sql_query);
smtp sounds like Simple Mail Transfer Protocol
Describe the bug
When I was trying to access the framework, I got error:
Fatal error: Default value for parameters with a class type can only be NULL in /Users/wlin/dev/light-php/system/library/Config.php on line 22
To Reproduce
Steps to reproduce the behavior:
Install and run the framework by the command:
composer create-project bakeiro/light-php
PHP -S localhost:8080 -t light-php/
boot the website by URL: http://localhost:8080/public/index.php?route=product/product/getProduct&prod_id=1
See error
Expected behavior
No error with a hello world view on the page.
Environment
"Forbidden
You don't have permission to access this resource.
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.10 Server at localhost Port 80"
It's on a local XAMP server. it's on local.
Where should I look? htaccess or where should I check? I can't make it work.
Hi,
I was trying to install light-php with composer when it run post-install.php file it gives failed to open "./system/engine/Util.php". you need to update post-install file as you have moved Util.php file under library directory.
Improve the functions and classes comments
Check wether it's working or not
sysmtem/engine/Util::cleanInput()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.