jcheron on master
[skip ci][Utils] add UArrayMode… (compare)
jcheron on master
Fix ResponseFormatter use (compare)
jcheron on master
[skip ci][Twig] add extensions … (compare)
jcheron on master
[skip ci] fix typo in CHANGELOG (compare)
jcheron on master
[skip ci][Utils] add find, remo… (compare)
jcheron on master
Add events for getHref and post… (compare)
jcheron on master
[skip ci] Update CHANGELOG (compare)
jcheron on master
[skip ci][Utils] UArrayModels a… (compare)
jcheron on 2.3.22
jcheron on 2.3.22
jcheron on master
Add addGroupBy method for DataT… (compare)
jcheron on master
[skip ci][Views] Fix url functi… (compare)
jcheron on 2.3.22
jcheron on master
Add postFormAction method (post… (compare)
jcheron on master
Fix HtmlCollections pb with obj… (compare)
jcheron on master
[skip ci][Validators] fix ui pr… (compare)
jcheron on master
[skip ci][Utils] add UArrayMode… (compare)
jcheron on master
[skip ci][Rest] Fix fk absent i… (compare)
Hi,
If it is about this extension ReactPHP
yes, it is implemented with Ubiquity :
Just do:
Ubiquity serve -t=react
The composer dependencies are added as needed and the server starts on port 8095 (which can be changed with -p
).
Nevertheless, I will not advise its use in production.
Benchmarks performed on Techempower have led to poor results when testing React with php-pm. React reacts badly to a high level of concurrency (see php-pm/php-pm#456).
The React or php-pm solution are not documented for this reason.
It is preferable to use Ubiquity with more stable solutions :
And there, the performance really takes off.
//Spiral loading
$users = $orm->getRepository(User::class)
->select()
->where('active', true)
->load('orders', [
'method' => Select::SINGLE_QUERY,
'load' => function($q) {
$q->where('paid', true)
}
])
->fetchAll();
//Ubiquity loading
$users=DAO::uGetAll(User::class,'active= ? and orders.paid = ?',[true,true]);
Otherwise, I would say that you also have to take into consideration the needs of your teams, their skills and the projects you're going to work on.
The choice of a framework depends more on this adaptation to needs and skills than on the intrinsic characteristics of a framework.
Last but not least, you should not forget that the quality of your developments depends more on your best practices than on the tools, languages or frameworks you choose to use.
Hello, so watch out RoadRunner on Techempower it's due to the fact that they took the net/http, if you switch to fasthttp it arrives at the top of the list, then swoole and then workerman, it was tested recently by our teams, I am wary of Techempower because not always reliable, but it must be said that the tests are not very simple to perform either because there is a whole process to be taken into account on each framework/server to perform good tests.
But the good news is that RoadRunner (with fasthhtp) integrates well with Ubiquity.
Thank you for this example, I add it to my presentation, because I would really like to work with Ubiquity.
app/config/config.php
), or the .htaccess
file.Hi
The framework works only with embedded server. If I run the project with Apache Vhost on my local machine of Ubuntu 20.04, all of routes except the default are 404. How to deploy on production?
Here is the configuration file <VirtualHost *:80>
ServerName testub.local
ServerAlias www.testub.local
ServerAdmin webmaster@testub.local
DocumentRoot /var/www/testub.local
<Directory /var/www/testub.local>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/testub.local-error.log
CustomLog ${APACHE_LOG_DIR}/testub.local-access.log combined
</VirtualHost>
.htaccess
file at the root of the project does not refer to the correct RewriteBase
,AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_ACCEPT} !(.*images.*)
RewriteRule ^(.*)$ index.php?c=$1 [L,QSA]
</IfModule>
$ find -name "composer"
./.oh-my-zsh/plugins/composer
./.cache/composer
./.config/composer
./.config/composer/vendor/composer
./Documents/Test/firstProject/vendor/composer
./Documents/Test/firstProject/vendor/phpmv/ubiquity-webtools/src/Ubiquity/controllers/admin/views/composer
./Documents/Test/firstProject/vendor/phpmv/ubiquity/docs/_static/images/composer
./.local/share/composer
I try to insert the PATH to get Ubiquity in cli but nothing works, when I enter the path "~/. config/composer/vendor/bin", the call to Ubiquity doesn't work. My paths where dialing is installed are
You can add PATH="~/.config/composer/vendor/bin:$PATH"
at the end of the ~/.bashrc
file
and then reload .bashrc:source ~/.bashrc
Unfortunately no, I tried in ~/.Profile
, ~/.Bashrc
, ~/. Profile
, ~/. Zshrc
without forgetting to reload source ...
, even temporarily by inserting it in the PATH="$PATH:$HOME/. compose/vendor/bin"
it doesn't manage to get the Ubiquity script back, I have to go there manually and make the command to execute the ./Ubiquity
script.
I'm under Arch Linux.