Software/Plugin that tracks website actions [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
We are currently moving a lot of our code to use the api we've developed instead of making sql calls from our php. There will be a lot of functionality to test once this happens. I was wondering if you know of a good plugin or software to use to track and replicate and action (such as registering a user, the logging in, posting a comment, etc). I know there is software like selenium, but I've heard that it would be more of a hassle to setup than it's worth (for what we need it for).
I basically want to create a script of my actions on our stable build, then run that script on the build that is using our newly implemented api build that uses a different database, then come the two databases to make sure they have the same data.
Any suggestions would be great. There has to be a chrome plugin or something, but I haven't been be able to find it after a few hours of searching.

If these are web service calls to your API, you can use curl (on the command line or within PHP) or even Guzzle as it's just an HTTP Client for communicating with web services. What you are describing is testing your app, which is common. There is nothing trivial or easy about full test coverage so prepare to spend some time setting this up and working out the kinks.

Related

Use caching in PHP for web app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm considering building a simple game with PHP as its backbone, but rather than doing a bunch of post redirects like classic web games this one will involve more immediate responses through ajax. In order to achieve what I want though, I think I'll want to store some information (locations of players, for instance) in server memory as opposed to a database. Should I use a caching library like Memcached or APA for this, or is there an alternative that will work better?
Memcached is a great tool for caching data because it's very fast and has a simple interface, but if the data you want to store needs to slightly more permanent and you cannot recreate it if it is lost, I would recommend something more durable. I have used Membase (same interface as memcached, but is persisted to disk eventually) and Redis (more robust interface including lists and a whole lot more).
Bottom line, if it's information you have stored in some other place but you just want to keep fast access to it, memcached is great. If you want something lighter than SQL but it will be the only place the information is stored, try some other NoSQL solution.

Browser simulation techniques/tips [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm trying to simulate a web browser in order to log into a secure site, where the site's backend seems to be written in some mix of PHP and ASP.NET, and retrieve some user details.
In order to fit my own project, the simulation results (i.e. the user details) must be returned to a PHP script for processing.
So far I've been working with CURL in PHP to do this, and realised that the site is far too complicated to use CURL effectively, and this method is far too slow to develop. What I would like is some sort of browser simulator that can:
Execute JavaScript
Submit forms
Click links
Handles cookies
Uses ASP.NET postbacks
Can access the DOM
Basically something that behaves exactly like a real browser, and can return the page source to me.
I've explored the Snoopy class in PHP and Capybara in Ruby. If I don't get any better options I will be forced to implement with one of these.
You have two options:
Use a headless browser. This is basically browser without any graphical output, which can be controlled via. code. You can check out Selenium and PhantomJS, there probably exists bindings for your language of choice.
Reverse their site. Do the login flow and actions needed to get to the resource you need, and look at the network traffic, for example with Chrome's developer tools. Look at the requests, headers and form data needed for the endpoints in question and emulate that in the code.

Web traffic analytics [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
The site that I am working on creates user sites like (domain.com/user). We want to show the users some web traffic statistics relevant to their own site, like how many views from facebook, twitter etc. Can you guys please recommend a solution which we can integrate into our PHP/MySQL based system? Or is it better to build one inside the system ourselves using mangoDB or something similar?
Any pointers would be appreciated.
For preference, unless you are using SSL, I would recommend implementing the sites as user.example.com/ rather than domain.com/user - it's much easier to configure your webserver to write seeprate log files / most off the shelf web analytics packages will split a log file from multiple vhosts into reports per vhost.
There's lots of tools available off the shelf - piwik, awstats, webalizer, analog
Google analytics is amazingly good value compared to most commercial offerings.
If you need to persist with your current naming schema, then consider using a too which relies on page tagging rather than log analysis.
Or is it better to build one inside the system ourselves using mangoDB or something similar?
I'd suggest that's very much a last resort - if you can't find what you need, then I'd recommend forking one of the open source packages.

Auto back-end generator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any PHP application that can automatically generate add/edit forms and listing pages by just reading the database. Like PhpMyAdmin but highly customizable through code or configuration files.
The main reason is to avoid time spent on development of back-end of web applications.
Try a framework, like CakePHP or Symfony. Almost all frameworks offer scaffolding for the backend part of the app. Here's the Cake way, and here's the Symfony way.
Symfony (using Propel or Doctrine) may have just what you're looking for: define the tables and their relationships, and it will generate the models for them, from which it can again generate admin listing/add/edit forms.
Try XataFace
I used it for my websites and it works ok (at least until you want too much from customization)
Try Symphony for code or Modubiz for just configuration.
Forms and pages? Surely this is front-end, not back-end?
You might want to have a look at phpeanuts, phpformgen, phplens, dhtmlxgrid (NB there are other free ajax data grids - but I've not played with them much)
C.

php based document management system [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Can anyone recommend a simple document management system with a decent web service interface?
I am looking at using it to provide metadata management of uploaded files from a ajax web application.
I've tried KnowledgeTree, but it's web service layer seems to be a bit complicated. Is there anything else out there with the similar features but a better integration backend?
DocMgr have just released a new version where they have a xml based web service API. I have not tried the new version yet, but the document management system is great (IMO way better that knowledge tree), and is worth a try.
One note is that it runs on PostgreSQL for speed, so this could be an issue if you are planing on running this at a web host, but I reccomend testing it out!
I'm sorry to hear that you found the KnowledgeTree web services interface complex. We'd love to hear more about what we could do to improve it. Feel free to drop us a mail on community |AT| KnowledgeTree | DOT | com
Have you taken a look at our latest documentation?
http://docs.knowledgetree.com/api/latest/
It covers the complete API and includes loads of examples to help get you started.
Phil (KnowledgeTree Team)
http://www.opendocman.com/

Categories