Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 27 21:40

    jcheron on master

    [skip ci] Update CODE_OF_CONDUC… (compare)

  • Sep 26 22:02

    jcheron on master

    [skip ci] update bug_report.md (compare)

  • Sep 26 21:51

    jcheron on master

    [skip ci][Doc] MultiResourceCRU… (compare)

  • Sep 26 16:47

    jcheron on master

    [skip ci][Doc] MultiResourceCRU… (compare)

  • Sep 20 10:35
    ashokkumar88 closed #184
  • Sep 20 05:25

    jcheron on master

    [skip ci] update crud doc (compare)

  • Sep 18 16:49
    yikikdeveloper closed #183
  • Sep 17 22:41

    jcheron on master

    [skip ci] fix index w3c validat… (compare)

  • Sep 17 15:11

    jcheron on master

    [skip ci] remove type attribute… (compare)

  • Sep 17 14:31

    jcheron on master

    fix assetsManager js and css pr… (compare)

  • Sep 17 00:12

    jcheron on master

    [skip ci] add javadoc in Events… (compare)

  • Sep 09 18:32

    jcheron on master

    Update codeception.yml (compare)

  • Sep 09 17:36

    jcheron on master

    updatr composer.json for tests (compare)

  • Sep 09 17:20
    jcheron labeled #184
  • Sep 09 14:58
    jcheron commented #184
  • Sep 09 14:31
    ashokkumar88 commented #184
  • Sep 09 07:21

    jcheron on master

    Update _index.php (compare)

  • Sep 09 05:25
    jcheron edited #184
  • Sep 09 04:58

    jcheron on master

    fic typo (compare)

  • Sep 09 00:17

    jcheron on master

    update codeception (compare)

Poule-magique
@Poule-magique
Hello everybody :)
Can we include FastHttp (written in Go) with Ubiquity ?
J-C HERON
@jcheron
Hi @Poule-magique
There are no explicit plans for FastHttp in Ubiquity,
so for the moment no, but it may be a good RFC.
Poule-magique
@Poule-magique
I'll do that, thanks for your feedback
Ah, if I have another question before tackling Ubiquity, do you know if it provides all the tools to write secure applications ? Such as built-in encryption, CSRF protection, cookie forgery protection, RBAC authorization, token-based authentication, validation, etc.
J-C HERON
@jcheron
Token authentication is built into the rest service.
For the encryption part, CSRF protection, Cookie protection, you can find it in Ubiquity-security (installable and configurable from the webtools).
The management based on roles is in Ubiquity-acl, also installable and configurable with the webtools.
The documentation of these 2 modules is in progress
Marwan Rabbâa
@waghanza

Hi,
I have

Cannot assign null to property Ubiquity\cache\CacheManager::$annotationsEngine of type Ubiquity\annotations\AnnotationsEngineInterface

when running ./vendor/bin/Ubiquity bootstrap prod

Vladas Lapinskas
@Lapinskas

Hi @Poule-magique ,

Maybe you can find interesting the RoadRunner and Ubiquity integration.
Road Runner is written in Go with the idea of PHP workers pool.

Poule-magique
@Poule-magique
Hi @Lapinskas
Yes I saw their project and it's very interesting, I even opened a topic to change the base of net/http by FastHttp.
I'm interested in two frameworks, Spiral and Ubiquity.
Quick question people, is Ubiquity ready for production or rather for personal projects at the moment ?
J-C HERON
@jcheron
It is used in production, and I think it is stable and efficient enough to give satisfaction in this context, but I am a bit partisan to give my opinion...
I have very few bug feedbacks: thanks to the continuous integration and benchmarks!
Poule-magique
@Poule-magique
Thanks @jcheron
On Friday, I have a meeting for the technology selection for a certain project, and two executives have been chosen, Spiral and Ubiquity, but I'd like you to tell me what additional point I can make about Ubiquity versus Spiral, aside from the fact that it's a good performer because I've already integrated it into my presentation.
J-C HERON
@jcheron
Hi @Poule-magique
In terms of performance, all other things being equal (with the same Roadrunner platform), there is a big difference between the two, based on the Techempower benchmarks use cases.
see Ubiquity vs Spiral With Roadrunner on Techempower benchmarks
It's from simple to double.
Otherwise, there is also a big difference in terms of ease of use.
If you consider an example of how to use ORM, I use this example provided by the Spiral ORM README:
load all active users and pre-load their paid orders sorted from newest to olders
//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();
The same with Ubiquity ORM with a simpler and more object-oriented approach:
//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.

Poule-magique
@Poule-magique
Hi @jcheron

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.

J-C HERON
@jcheron
All other things being equal: Ubiquity like Spiral does not use fastHttp for Techempower tests, or I missed a step...
Thae Htet San
@ths.thaehtetsan_gitlab
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?
J-C HERON
@jcheron
@jcheron
Hi @ths.thaehtetsan_gitlab
Without knowing anything about your configuration, it is difficult to help you.
It would be better in this case to open an issue, to be able to explain your problem correctly.
You will be able to put there the configuration file (app/config/config.php), or the .htaccess file.
Otherwise, you have some documentation on the configuration of the servers.
Thae Htet San
@ths.thaehtetsan_gitlab

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>

J-C HERON
@jcheron
Hi @ths.thaehtetsan_gitlab
As I told you before, it would be better with the framework configuration files (app/config/config.php, .htaccess files).
Not sure, I think that the .htaccess file at the root of the project does not refer to the correct RewriteBase,
this would be:
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>
J-C HERON
@jcheron
You also need to make sure that the rewrite mod is active:
sudo a2enmod rewrite
J-C HERON
@jcheron
You can also check the creation of the cache, and the routes:
Ubiquity info:routes
image.png
Poule-magique
@Poule-magique
Hello the community :)
Poule-magique
@Poule-magique
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
$ 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
J-C HERON
@jcheron

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

Poule-magique
@Poule-magique
I will try this
J-C HERON
@jcheron
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
source ~/.bashrc
Poule-magique
@Poule-magique

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.

Poule-magique
@Poule-magique
I can still move forward, but I confess that I would like him to be able to take into account the script
Poule-magique
@Poule-magique
I just noticed the error, a second /.Zprofile file is too much, so it's time to fix it.
:)
J-C HERON
@jcheron
What Linux distribution do you have?
If it's Debian or Ubuntu, it's ~/.bashrc
J-C HERON
@jcheron
for bash...
Poule-magique
@Poule-magique
I use ArchLinux with ZSH, but I was able to fix the problem which was a duplicate file of ~/.Zprofile
Le Dang Long
@butchi_gitlab
help me
CleanShot 2021-09-08 at 16.58.26.png
when i click create models and i get this errors
J-C HERON
@jcheron
Hi @butchi_gitlab ,
not easy to help in this context, we know nothing about the versions you use (php, framework, devtools, webtools, SE).
It would be better to submit this in a Gitub issue. That would have the advantage to bring answers to those who would also have this problem.
kuroyuri.mienai.one
@kuromienai_one_twitter
how to fix twig's dump function doesn't work? i have set debug in config for templateEngineOption "templateEngineOptions"=>[ "cache"=>false, "debug"=>true, ], but the page says error Unknown "dump" function.
kuroyuri.mienai.one
@kuromienai_one_twitter
oh i must add "extensions"=>["Twig\Extension\DebugExtension"]
J-C HERON
@jcheron
well done @kuromienai_one_twitter !