Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow files with html + php #116

Open
hoit opened this issue Jul 12, 2023 · 1 comment
Open

Feature request: allow files with html + php #116

hoit opened this issue Jul 12, 2023 · 1 comment

Comments

@hoit
Copy link

hoit commented Jul 12, 2023

Yak-pro does not work on .php files which contains html code.

For instance, if you create some contract classes and call it in view pages (in sense of MVC model), it means that you are not able to obfuscate contract (event if the code does not contain any intelligence...) otherwise the view will not works as it contains html code and the functions are not renamed in it.

Could it be possible to manage also the php code available between html sources ?

		<div id="header">
			<a class="home" href="<?= $header->getHomeUrl() ?>">Home</a>
		</div>

		<div id="header-links">
			<?php
			if($header->isConnected())
			{
			?>
			<ul>
				<li><a href="<?= $header->getProjectsUrl() ?>">Projects</a></li>
			</ul>

			<?php
			}
			?>
		</div>
@X25guru
Copy link

X25guru commented Aug 7, 2023

I've never had a problem with this. You can tell it not to obfuscate things in the conf. This would probably be class variables.

If I need to obfuscate a utility I create one big php file by combining the sources; (in no includes or libs) and then you can obfuscate the entire thing. With externals you'll have to not obfuscate external variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants