How to use Phalanger to obfuscate php code on CodeIgniter? - php

I have been working on PHP application built using CodeIgniter framework, which needs to be deployed on client site. I want to protect php code by compiling it before deployment using Phalanger. For testing this I've created a demo project on CodeIgniter with just one function and controller. Now I just need to protect the controller/method I've created on the top of CodeIgniter while leaving rest of CodeIgniter as it is. I have tried several ways and also tried to find how to do it on google, but there isn't any good material on how to use Phalanger. Does any one had any success using Phalanger to obfuscate php code for deployment? Any tutorial or help will be good. Thanks

Phalanger allows compilation of PHP scripts into Multi Script Assemblies. However full obfuscation of generated DLL is a part of proprietary Phalanger extension which can be obtained from DEVSENSE support.

Related

How to build my HTML/JS/PHP project as progressive web app in visual studio?

I do have a website, which works with the following technologies:
HTML (index.html - in combination with Bootstrap)
Javascript (some .js files)
PHP (some PHP files)
This website has more an app function. Why? Because my visitors are able to request some content from different sources, depending on their input. In addition, these different sources are hostet on different domains.
(Here an example, for better imagine about my website: Think about a website which is an online calculator. The visitor can input some data. Regarding the data there is result. What I want to do is, this website convert to an an mobile-app, better to PWA.)
What do I want to do?
I would like to build a progessive app, where I can build a mobile app which should work on iOS and Android.
What kind of tools I do have?
I do have Visual Studio Enterprise 2017. I think this IDE is enough to realize my project.
Questions:
Is it possible to use PHP on a mobile app (PWAs), which was build with Visual Studio? What do I have to take care?
If I want to create a new Project on Visual Studio, I am able to create projects in different programming language. Question, in my case, which one would you recommend me to build up PWA? Which one is most compatible to do it stuff with mobile apps? Please check my attachment.
PWA is a Progressive Web App so I think you can't use langues as C++. Maybe C# but I don't know.
Yes you can use PHP to built PWA.
Use visual studio code if you like. You decide which editor or IDE you use in your project.
Guide that can help you:
https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/

Using PHP, how can I determine which CMS or framework is used?

Using PHP, can I find out which CMS or framework is used on a particular website. Eg Wordpress, Magento or Codigniter, Laravel.
I've tried this approach: http://dailyblogging.org/internet/detect-cms-and-scripts-of-websites/
This is what I actually want, but in code form, not as an online service: http://onlinewebtool.com/cmsdetector.php This should be a PHP script that does not run as an online service.
What will it take to do this, or at least give me a hint?
Update 2018
Github repo moved:
https://github.com/AliasIO/Wappalyzer/blob/master/src/apps.json
There is a Chrome extension called Wappalyzer.
You can see some regexp which are included in the wappalyzer project for detecting servers, cms and frameworks.
Maybe you can include this and write a php script that uses this:
https://github.com/ElbertF/Wappalyzer/blob/master/share/apps.json
For Drupal, view source
And if you find
/sites/all
/sites/
For including image/javascript/css, its Drupal based site.
Same way, if you find wp_content, its wordpress.
For MVC ftameworks, its difficult to determine as url routing is same for all.

How to connect Codeigniter API to an Android App

I have an API built in PHP Codeigniter. I imported it into Eclipse for PHP Developers successfully but I have no Idea how to connect it to my Android App and an existing online PHP database.
I also tried extending it but the core classes in Codeigniter are not available in eclipse's (for PHP) code completion (e.g. on hitting ctrl + space while extending CI_ classes, options are expected to pop up but they don't).
What can I do to make it work. I tried looking around and found a question here but it has no answers, so I am stuck. Here is the question (in here) that I came across: connecting php codeigniter with android.
Thanks.
I just had to learn Codeigniter from scratch to solve my problem.

php-maven repository is not available?

I am trying to build up project for php using php-maven using zend framework which has embedded jetty server.
Looked at various option on web but did not find anything useful.
With the lot of information available on web I tried configured php-maven but seems like php-maven (http://repo1.php-maven.org/release, http://repos.php-maven.org/release) repo is down. Can anyone provide any further information on this? Is php-maven out of development?
I followed few links but did not get anything out of it:
../php-zend-5min.html
I am looking for if there are any other way through which I can mavenized my php web project and run through embedded jetty? Including my php-unit tests.
Thanks in advance.

Codeigniter and Google App Engine

I've made my entire site using the Codeigniter framework, and it is working well without any hassles (Note I'm using MySQL in the website).
I've been told now to try and get it on to the Google servers as they are excellent for scalability. I just have one huge problem, is there any way or step by step tutorial that helps me do this as I've read up on Quercus which allows for the php to run but I haven't found something explaining how to use the Codeigniter framework with the Quercus.
Please any help or push in the right direction would be appreciated!
We announced Native PHP support for Google App Engine at I/O.
https://developers.google.com/appengine/docs/php/
After Google announced native PHP support I decided to deploy CodeIgniter on Google App Engine. It works natively, tough certain extensions to the core must be done in order to use PHP Runtime API.
I've started writing a series of articles you might want to check out which document and clarify the process of deploying CodeIgniter natively.
http://blog.programming4design.com/codeigniter-on-google-appengine-for-php/
PHP is being added natively to App Engine, maybe this year, but I'm not sure when. The App Engine Team announced this on the parntership event at Paris last week.
CodeIgniter works fine on Google App Engine's PHP.
Working Demo at : http://ci-on-gae.sasidhar.com/
Source files for the entire above demo site are in Github at : https://github.com/sasidhar/codeigniter-gae-app

Categories