Diffrence between Simple Router like (CodeIgniter) and Restful Router (Slim Php) [closed] - php

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am a novice PHP coder. Have basic knowledge in php [Self taught]. Presently learning CodeIgniter. But recently checked Slim Php Framework. It has Restful Router.
Can any one please tell, what is difference between CodeIgniter Router and Slim Router. And which one is better?
Thanks in advance.

Codeiginiter maps your class and method to the url. This a easy way to build your mvc project. But in my opinion isn't a good way to build apps if you need more powerful, if anyone wants change urls you have a serious problem.
Slim 3 has a way to map an url to your own class. For example:
$app->get('/myownurl', MyController::class);
You can change it easily.
You could review routes docs:
http://www.slimframework.com/docs/objects/router.html#how-to-create-routes

Related

Is it good for my courier using php and laravel? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I'm using php and Laravel.
Is is good to build my courier?
I know this is ridiculous but i wonder.
modern php is much better than before.
but i'm still wonder using php.
Yeah it is still good using php especially laravel.
First, php framework (laravel) using MVC Architecture that easy to use, and many tutorials there.
And then, laravel have a feature called Eloquent ORM for easy interaction with your app database

How CodeIgniter url work? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to php so it did not seem like a good idea to use the framework.
I want to create my own framework from strach.
I want to open php class with a url like what codeigniter do.
I want to use urls like index.php / MyClass instead "get" index.php? class = MyClass.
how can I achieve that?
You have made good decision to develop your framework . This is known as Routing or URL Rewriting . You can learn this at URL Rewriting. For a complete framework , You have to learn about
Template System
Query Builder etc
I suggest you to learn Codeigniter framework for better understanding of PHP framework

ACL for Web API in Laravel 5.1 that works like a Tree data structure [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am a beginner who is working on a web API, Web API must have:
User management
Acl (access control list)
Etc ...
and I do use laravel 5.1 so the question is how do I implement the ACL into the web API using the library or whether I have to make it yourself?
Thank :)
[Edited]
I want ACL library that could work like a tree, for example if there is a role `` rootwho have children admin then what can be done by admin can also be done byroot without the need to assign permissions to root enough to adminonly.
Based on my own experience the best lib i ever used for Laravel ACL is kodeine/laravel-acl.
Simple installation, flexible and easy to implement in laravel projects an it's well documented find Documentation HERE.
Hope this helps.

What are the advantages of a php framework like codeigniter? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What would be the advantage of using a framework like codeigniter vs raw PHP?
MVC pattern, which I recommend you read about. It provides concern separation and is an industry standard for building web apps.
Less boilerplate code - everything (mostly) you need is already provided by framework classes API
Active Record - a nicer way to query database
etc. Bottom line is - use a framework, unless it's a quick hack, then framework might be an overkill

Which is the best PHP MVC framework? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm new to PHP and this forum, I just would like to know which is the best PHP MVC framework regarding to performance and scalable at the present? I wonder if Yii is the best one.
There is no best MVC framework. Use the one that you are comfortable with. Here are some list of MVC frameworks that you would want to lookat
Yii
CodeIgniter
CakePHP
Symfony2
Zend Framework
Laravel
or here is the entire list of PHP frameworks

Categories